Rewriter/Paraphraser/Text Changer (Multi-Language)

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

9.7 / 10

लेटेंसी

1,703ms

सेवा का स्तर

100%

Health Check

N/A

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

Error 400

Rapid account: Malharlakdawala
malharlakdawala
2 वर्ष पहले

Hi, I am running below python code, but getting a error code 400… and response.text shows below error…

error message: Unexpected token # in JSON at position …

My code is as below, please help (things are working fine on rapidapi playground, but not on local machine):

import requests

url = "https://rewriter-paraphraser-text-changer-multi-language.p.rapidapi.com/rewrite"
payload = {“language”: “en”, “strength”: 3, “text”: “the company are hc trader. the company are working with all kinds of sanitary hardware electricals complite range of buldin”}
headers = {
‘content-type’: “application/json”,
‘x-rapidapi-host’: “rewriter-paraphraser-text-changer-multi-language.p.rapidapi.com”,
‘x-rapidapi-key’: “<API KEY>”
}
response = requests.request(“POST”, url, data=payload, headers=headers)
print(response.text)

Rapid account: Smodin
smodin Commented 2 वर्ष पहले

Hello, If your getting a message that there is an unepected token in the JSON then it is something in your code. I’m not a python coder by trade, otherwise I would help you with your python code. I would recommend using stack overflow. I can confirm the endpoint is working correctly.

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

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