Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1328

Error BAD_REQUEST idempotency_key

$
0
0

Hi,

when making this call from my custom app on a mac machine this call works. The same custom app running on windows 11 provides this error which i do not understand because i am not including any idempotency_key field. Not sure why I am getting this error. Again this in on windows 11

Below are my logs… I am working on the sandbox.

2024-05-08 17:27:27: Request Endpoint - https://connect.squareupsandbox.com/v2/devices/codes/X302DC34SD90
2024-05-08 17:27:27: Request Response - {"errors": [{"code": "BAD_REQUEST","detail": "The field named 'idempotency_key' is unrecognized (line 1, character 2)","field": "idempotency_key","category": "INVALID_REQUEST_ERROR"}]}

This happens when making a call to GetDeviceCode or GetTerminalCheckout on windows not on mac. It looks like the first call to CreateDeviceCode and CreateTerminalCheckout work fine or maybe because those calls are done first that the second calls fail with the error above.

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 1328

Trending Articles