Google Translate

פרמיום
על ידי Google Cloud | מְעוּדכָּן לפני 9 חודשים | Text Analysis
פּוֹפּוּלָרִיוּת

9.9 / 10

חֶבִיוֹן

620ms

רמת שירות

92%

חזרה לכל הדיונים

Incorrect header check

avatar
steviemmusic
לפני שנתיים

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 לפני שנתיים

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 לפני שנתיים

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 לפני שנתיים

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

avatar
steviemmusic commented לפני שנתיים

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!

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות
דירוג: 4 - הצבעות: 3