Open AdzeB opened 3 months ago
Hi I added the customFetchImpl to log it
Impl
const { data, error } = await $fetch("@post/device/unlinkButton", {
query: { userId: 10 },
});
LOGs:
LOG info Request being sent to: https://api.here.com/api/device/unlinkButton
LOG false
LOG {}
LOG fail Request failed with status: 400 (Bad Request)
LOG Retrying request. Attempted Request: https://api.here.com/api/device/unlinkButton, Attempted Response: 400
WARN warn Retrying request... Attempt: 1
LOG info Request being sent to: https://api.here.com/api/device/unlinkButton
LOG false
LOG {}
LOG fail Request failed with status: 400 (Bad Request)
LOG Retrying request. Attempted Request: https://api.here.com/api/device/unlinkButton, Attempted Response: 400
WARN warn Retrying request... Attempt: 2
LOG info Request being sent to: https://api.here.comt/api/device/unlinkButton
LOG false
LOG {}
LOG fail Request failed with status: 400 (Bad Request)
LOG Retrying request. Attempted Request: https://api.here.com/api/device/unlinkButton, Attempted Response: 400
WARN warn Retrying request... Attempt: 3
LOG info Request being sent to: https://api.here.com/api/device/unlinkButton
LOG false
LOG {}
LOG fail Request failed with status: 400 (Bad Request)
LOG error {"message": "Value cannot be null. (Parameter 's')", "status": 400, "statusCode": "400", "statusText": ""}
LOG 17:52:17 | ERROR : Error unlinking button:
{
"status": 400,
"statusCode": "400",
"message": "Value cannot be null. (Parameter 's')",
"statusText": ""
}
Hi I added the customFetchImpl to log it
Impl
const { data, error } = await $fetch("@post/device/unlinkButton", { query: { userId: 10 }, });
LOGs:
LOG info Request being sent to: https://api.here.com/api/device/unlinkButton LOG false LOG {} LOG fail Request failed with status: 400 (Bad Request) LOG Retrying request. Attempted Request: https://api.here.com/api/device/unlinkButton, Attempted Response: 400 WARN warn Retrying request... Attempt: 1 LOG info Request being sent to: https://api.here.com/api/device/unlinkButton LOG false LOG {} LOG fail Request failed with status: 400 (Bad Request) LOG Retrying request. Attempted Request: https://api.here.com/api/device/unlinkButton, Attempted Response: 400 WARN warn Retrying request... Attempt: 2 LOG info Request being sent to: https://api.here.comt/api/device/unlinkButton LOG false LOG {} LOG fail Request failed with status: 400 (Bad Request) LOG Retrying request. Attempted Request: https://api.here.com/api/device/unlinkButton, Attempted Response: 400 WARN warn Retrying request... Attempt: 3 LOG info Request being sent to: https://api.here.com/api/device/unlinkButton LOG false LOG {} LOG fail Request failed with status: 400 (Bad Request) LOG error {"message": "Value cannot be null. (Parameter 's')", "status": 400, "statusCode": "400", "statusText": ""} LOG 17:52:17 | ERROR : Error unlinking button: { "status": 400, "statusCode": "400", "message": "Value cannot be null. (Parameter 's')", "statusText": "" }
The issue you're experiencing should generally work, and we have test cases that cover this scenario. To better identify the problem, could you please provide a link to the code in a reproducible format? A github link or online code editors like the ones I suggested above would be great.
Okay, no problem I will create it
Query value is not being set even with hardCoded value
Request:
LOG:
Set Up