FastAPI + JS fetch() — Everything Works but Nothing Shows #10203
Replies: 1 comment
-
This is the repository for discord.py, a Discord bot library. This isn't the place for this question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks — looking for help with a stubborn frontend+FastAPI issue. Hoping someone here has seen this.
🧠 Goal: Send a user prompt to a FastAPI
/ask
endpoint and display the reply on the page. Simple setup: HTML + JavaScript + FastAPI.✅ Confirmed:
{ "reply": "Your answer here" }
console.log(data.reply)
works❌ Problem:
No matter what I try, this line silently fails:
Beta Was this translation helpful? Give feedback.
All reactions