Google Translate

फ्रीमियम
द्वारा Google Cloud | अपडेट किया गया 5 महीने पहले | Text Analysis
लोकप्रियता

9.9 / 10

लेटेंसी

438ms

सेवा का स्तर

91%

सभी चर्चाओं पर वापस जाएं

Incorrect header check

avatar
steviemmusic
2 वर्ष पहले

Hi, so I used this yesterday no issues. Now I am suddenly getting the following:

“cURL Error #:Error while processing content unencoding: incorrect header check”.

Even with the code snippet from Rapid API. Any idea what is up with this?

avatar
googlecloud commented 2 वर्ष पहले

Hey steviemusic, thanks for reaching out! The API is working for us through Shell. We recently made a change to the pricing plan though, which might be causing the issue? Could you check https://rapidapi.com/googlecloud/api/google-translate1/pricing and see if you are on the latest plan or if you are on a legacy plan?

avatar
steviemmusic commented 2 वर्ष पहले

Hi, I am on the pro plan, I paid this morning so I’m guessing it’s a new plan type rather than a legacy plan. I am using php curl since my project is to be in php website for school and last night it worked straight away, I tested it in the page I was building, but today I get header error for both the page I made, and also the page I created with just the code from Rapid API where I made no changes to the code from the rapid api code snippet.

avatar
googlecloud commented 2 वर्ष पहले

Hey Stevie, could you see if adding the header
"Accept-Encoding":"application/gzip"
and see if that fixes the issue?

avatar
steviemmusic commented 2 वर्ष पहले

Thank you so much, yes it worked! I’m still relatively new to using api’s. I had actually read about this on stack overflow, I’m so glad its working now. I’m more of a front-end type person and I was bit lost. I appreciate all of your help and time!

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें
रेटिंग: 3.8 - वोट: 18