propertiesV2List not working?

propertiesV2List seems to not be working. My code :

Future<void> fetchThingProperties() async {
  try {
    final response = await http.get(
      Uri.parse(
          "https://api2.arduino.cc/iot/v2/things/{thing_id}/properties"),
      headers: {"Authorization": "Bearer $arduinoAccessToken"},
    );
    print("response in fetchThingProperties:");
    print(response.body);
  } catch (e) {
    print("Error in fetchThingProperties:");
    print(e);
  }

this returns

{"id":"swl7wWVm","code":"not_found","status":404,"detail":"thing not found: sql: no rows in result set"}

the accessToken and thing id is valid since e.g., propertiesV2Show work.

Could anyone tell me why?

that seems to be related to your other question How to get historical data about a thing

āžœ I suggest you keep everything under one topic which is getting access to the Arduino IoT Cloud API v2 using flutter

see https://docs.arduino.cc/arduino-cloud/getting-started/arduino-iot-api to get your IDs

Hi @kantzow ,
I'm not very familiar with Dart, but it seems to me you're not replacing the actual thing ID in {thing_id}.
Should it be maybe $thing_id like you're doing in "Bearer $arduinoAccessToken"?