dio icon indicating copy to clipboard operation
dio copied to clipboard

Prompt for not simple requests on Web

Open AlexV525 opened this issue 10 months ago • 2 comments

Request Statement

People usually wonder why their requests are being treated as CORS. Various of configuration could lead to the result before people can realize, such as connectTimeout and sendTimeout across platforms.

Solution Brainstorm

We might find relevant cases to add logs about "You're making a complex Web request which might lead to CORS" or add more messages when specific exceptions were thrown on the Web platform.

AlexV525 avatar Apr 23 '24 14:04 AlexV525

From what I remember, there are no useful exceptions in a lot of cases. Wonder if we could add some sanity checks for common problems and provide suggestions.

kuhnroyal avatar Apr 23 '24 14:04 kuhnroyal

Wonder if we could add some sanity checks for common problems and provide suggestions.

Exactly, and that would be the thing we'll feel great because the community would love such sweet words

AlexV525 avatar Apr 23 '24 18:04 AlexV525