Open ahmontero opened 1 year ago
Hey I think we may already have a solution to fix this issue - do you think you all could try passing in another optional input 'normalize_response' = True
to DataPassthroughRequest - that should convert the response to a dict from a str.
Let me know if that still doesnt work!
Hi! If I change the code as you say I need to change the response parser. Anyway the error is bit weird, because I am not facing it everytime I call the api.
By the way, I do not know if it is related, but lately I am facing a lot of 406 errors when I call the passthrough_create
method. I get a response with a 406 status and a Server internal error
message. I do not have any hint to know how to fix the error.
If this can help you to debug, the response header x-request-id=F3M6LlmkgJAj5BwJpPai
is returning 406 error.
Ah I think with the normalize_response
option you won't actually need to change your response parser as it should make sure that it always passes back a dictionary which is what it should be passing back (currently the error seems to be it is trying to pass back a string). Some more information is in our docs if you click the 'Show 5 more' button you will see some information on normalize_response
. But let me know if that doesn't match up with what you originally thought/that won't work for you!
Method
passthrough_create
fromPassthroughApi
gives me this error:The code I am using is:
I have debugged the code in your library and at the end the request is sent with this info (some data omitted):
URL:
https://api.merge.dev/api/ats/v1/passthrough
Method:
Post
Body :