PROBLEM/newbee #149716
Replies: 3 comments
-
| Hey! This might throw an error since the URL which you are inserting in the src tag, it is bringing back HTML response instead of the JSON. This can probably occur in case that particular URL points toward some webpage or some incorrect endpoint instead of the correct API endpoint. Some things to just check: Let me know what you find! That helps you narrow down the issue. | 
Beta Was this translation helpful? Give feedback.
-
| thank you very much ill be sure to check on all those steps.Appreciate it
alot… On Wed, 22 Jan 2025 at 15:10, deepaksharmaldh ***@***.***> wrote:
 Hey!
 This might throw an error since the URL which you are inserting in the src
 tag, it is bringing back HTML response instead of the JSON. This can
 probably occur in case that particular URL points toward some webpage or
 some incorrect endpoint instead of the correct API endpoint.
 Some things to just check:
 *Check the URL:* Double-check the URL in the src tag. Ensure that it
 points to the right API endpoint that returns a JSON response, not a
 webpage.
 *Check for Redirects:* Perhaps your URL is redirecting to an HTML page,
 like the error page. That might explain why you see in your error message.
 Go ahead and open up your developer tools in the browser and check the
 network requests for any kind of redirects or errors.
 Test the URL directly in your browser, or apply some tool like Postman to
 check the API response. If this returns HTML, it may be because of the use
 of an incorrect API URL or there might be a problem with the server.
 Let me know what you find! That helps you narrow down the issue.
 —
 Reply to this email directly, view it on GitHub
 <#149716 (comment)>,
 or unsubscribe
 <https://github.com/notifications/unsubscribe-auth/BB23BPJUDCLVM4ZB7KEQXPD2L5RPNAVCNFSM6AAAAABVUNH3ASVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJRGM4DGNA>
 .
 You are receiving this because you authored the thread.Message ID:
 ***@***.***>
 | 
Beta Was this translation helpful? Give feedback.
-
| 
 | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ive just finished an ai genereative workshop and was given a project,i followed all steps but when i tried to copy my url in my html file using the gradio app tag and src tag it shows an error message like this 2
Could not get api details: Unexpected token '<', "<!doctype "... is not valid JSON
failed to load: browserstate
TypeError {}
Uncaught (in promise)
Object {name: "TypeError", message: "Ja[w] ...
Beta Was this translation helpful? Give feedback.
All reactions