You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I'm getting a "TypeError: Failed to fetch" error when querying any endpoint on the https://conversations.messagebird.com/v1/. I'm most interested in https://conversations.messagebird.com/v1/send. Using Postman, my request gets executed perfectly. Using curl, my request also gets executed perfectly. I copy and paste the same code from Postman or my curl request to my NEXT js React app, and TypeError comes up. I'm both trying the MessageBird SDK and doing the request manually.
This only happens on the messagebird.callflows and messagebird.conversations endpoints. I can hit the messagebird.balance, the messagebird.voice_messages and messagebird.messages endpoints just fine, without any errors, using similar code to that below.
Has anyone else encountered this error on the conversations and callflows API endpoints? Could this be a CORS response error? I see an article here talking about how CORS headers in the MessageBird response could be the culprit: https://bobbyhadz.com/blog/javascript-typeerror-failed-to-fetch-cors.
Hi there, I'm getting a "TypeError: Failed to fetch" error when querying any endpoint on the
https://conversations.messagebird.com/v1/
. I'm most interested inhttps://conversations.messagebird.com/v1/send
. Using Postman, my request gets executed perfectly. Using curl, my request also gets executed perfectly. I copy and paste the same code from Postman or my curl request to my NEXT js React app, and TypeError comes up. I'm both trying the MessageBird SDK and doing the request manually.This only happens on the
messagebird.callflows
andmessagebird.conversations
endpoints. I can hit themessagebird.balance
, themessagebird.voice_messages
andmessagebird.messages
endpoints just fine, without any errors, using similar code to that below.Has anyone else encountered this error on the
conversations
andcallflows
API endpoints? Could this be a CORS response error? I see an article here talking about how CORS headers in the MessageBird response could be the culprit: https://bobbyhadz.com/blog/javascript-typeerror-failed-to-fetch-cors.Manual request (TypeError):
SDK request (TypeError):
Curl request (NO error):
PostMan (NO error):
Screenshot 1:
Screenshot 2:
The text was updated successfully, but these errors were encountered: