The solution
Start nginx listening port 7890 locally and forward to dysmsapi.aliyuncs.com
Problem description
The same code running in my MAC environment reported an error
Copy the code to your colleague’s Windows environment and it will work
Then you can tell that there is no problem with the code, only the environment
The screening process
127.0.0.1:7890 = 127.0.0.1:7890 = 127.0.0.1:7890 = 127.0.0.1:7890 WTF???? A black question mark?? What is this?
com.aliyuncs.http.clients.ApacheHttpClient#calcProxy
Copy the code
This is the place where the request went to the proxy. I’ll fix the bug later