Google Translate

免费增值
通过 Google Cloud | 已更新 4 months ago | Text Analysis
人气

9.9 / 10

延迟

441ms

服务等级

91%

返回所有讨论

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!

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论
打分:3.8 - 投票:18