Text Similarity

फ्रीमियम
द्वारा Twinword, Inc. | अपडेट किया गया 4 महीने पहले | Text Analysis
लोकप्रियता

9.5 / 10

लेटेंसी

425ms

सेवा का स्तर

100%

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

URI too large error

avatar
prabin.mpercept
3 वर्ष पहले

what causes this error?
414 Request-URI Too Large

avatar
twinword commented 3 वर्ष पहले

Hi prabin.mpercept,

It looks like you might be using the HTTP GET method where the texts you’re comparing are placed in the query string of the URL.

Here is an example of text1 and text2 inside the URL of a GET request:

https://twinword-text-similarity-v1.p.rapidapi.com/similarity/?text1=some+text&text2=some+other+text

[PROBLEM]

When the text is large, this will make the URL too long, thus giving you this specific error.

[SOLUTION]

Instead, you can try using an HTTP POST method instead. This would put the texts you’re comparing into the body of the HTTP request and leaving your URL with just the endpoint.

This will make your POST request URL just the following:

https://twinword-text-similarity-v1.p.rapidapi.com/similarity/

In the texts you’re comparing in the body of the POST request:

text1=some+text&text2=some+other+text

Please let me know if you have any questions.

Good luck!

Team Twinword

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

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