The timeout error occurs only in the appropriate request.

Asked 1 years ago, Updated 1 years ago, 70 views

POST, PUT, and DELETE are normally processed without any problems when requesting api, but what is the problem if there is always a timeout when requesting GET...Haha;

Currently, we are working on react-native, and we receive the request from Android with the same code without any problems, but only iOS has this problem.

Although the request address is http, I set NSAllows ArbitraryLoads to true and set NSExceptionDomains just in case, but I don't think http request is a problem because there is only a problem with get request...

If you have anything in mind, please help me ㅠ<

Additional information

:

api react-native express ios axios

2022-09-22 17:57

1 Answers

Please tell me the raw header.

Because the server is experiencing an error, the error is likely to occur depending on the value sent by the client.

One of the suspected values is the user-agent value.

See if the server filters with client values.

These days, you use a web firewall or a security library, so an invalid header value can be sufficiently blocked.

GET https://www.delmadang.com/ HTTP/1.1
Host: www.delmadang.com
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: ko,en-US;q=0.9,en;q=0.8,ja;q=0.7
Cookie: DL%5FBBS=K2=&K1=&PC=&ST=&RC=; ASPSESSIONIDQEAAQRBB=KIKJLKPANDBMMHDOBGKDFDDP


2022-09-22 17:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.