Google Translate

ÜCRETSİZ PREMIUM
Taraf Google Cloud | Güncelleyen 9 months ago | Text Analysis
Popülerlik

9.9 / 10

Gecikme

619ms

Hizmet Düzeyi

92%

Tüm Tartışmalara Dön

Incorrect header check

avatar
steviemmusic
2 years ago

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 years ago

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 years ago

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 years ago

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

avatar
steviemmusic commented 2 years ago

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!

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun
Değerlendirme: 4 - Oy Sayısı: 3