Click here to Skip to main content
15,880,905 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All

I am facing "406 not acceptable nginx" error when I call send grid api

Sometimes it gives me json response perfect but after 2 3 minute it gives me "406 not acceptable" error

We have been facing this error for 3 months. Please help us.


What I have tried:

I tried all possibilities. I also changed in my code. I also changed the accept header.
Posted
Comments
Sandeep Mewara 29-Sep-20 13:01pm    
this website/service which is intermittent available, is that server under some regular maintenance? Like server updates and reboots? When this issue happens, you sure that server is up and running to return data?
dinesh@pcubeweb.com 30-Sep-20 1:27am    
Hi Sandeep

I already update and reboot the server. One more thing I used the same code in another server it works fine.
Sandeep Mewara 30-Sep-20 1:36am    
I was asking if your new server is auto-rebooting or so.
dinesh@pcubeweb.com 30-Sep-20 2:07am    
Our server is put windows auto-update mode
Sandeep Mewara 30-Sep-20 3:23am    
So look into that if that is the reason.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900