Trouble with the query API - no permission #98
-
Hi, Whatever I change in the example code leads to a JSON-format error, so I leave everything as it is. Authentication worked for uploading, so I think it's fine. And in the portal I have provided grants |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Additional finding:
The response is: |
Beta Was this translation helpful? Give feedback.
-
I think I found the answer: |
Beta Was this translation helpful? Give feedback.
-
yest, this is correct - you need wait about 5 sec. The same problem is on Demo environment. I'm using retry mechanizm and try to execute query 3 times with 5 sec delay. This issue was reported by me to Ministry of Finance couple months ago - by wit no any answer. There is a special exception type for this situation: |
Beta Was this translation helpful? Give feedback.
I think I found the answer:
The program needs to wait between the creation of the session token and sending the query request.
If I send the query immediately or even 500ms later, I get an error. If I wait one second, I get the expected result.
Not very satisfying, but so now I have a workaround.