Api issues | Community
Skip to main content

Api issues

  • December 6, 2023
  • 2 replies
  • 0 views

Hebah

hi, 
I want to implement  Zendesk email ticketing in flutter web .
I am using this api in Flutter web

https://mr-fixsupport.zendesk.com/api/v2/tickets.json
Basic aGViYWgua2hvdWphaEBnbWFpbC5jb206KlF3ZXJ0eTc4

Now, Getting the error-


DioError: DioException [connection error]: The connection errored: The XMLHttpRequest onError callback was called. This typically indicates an error on the network layer. This indicates an error which most likely cannot be solved by the library.


Please help for this .

Thanks 

2 replies

Hebah
  • Author
  • December 12, 2023

@Ahmed Ahmed Zaid Thanks For Your Reply

\When I am using same Api In Flutter app , It is Working Fine and  I am not getting any Type of error .

This error is facing only Flutter Web.

Thanks


Hi Hebah,
 
This is commonly the result of a CORS error.  Unless the endpoint requires no authentication, we only implement CORS on API requests authenticated via OAuth.  So you'll need to authenticate this request with an OAuth token.  We break this down in Making client-side CORS requests to the Ticketing API.