fetch not working
fetch is not working in my program, going to attempt to show it as well as possible.
the initial call :
the method that calls that method:
basically the logic set up is like this:
@James here is more of the logic, i copy pasted the code you used and that didn't seem to work so not sure what the issue could be
5 Replies
On initial glance,
this.chat is async, but you're not await-ing it. So if you're calling it, but not awaiting, and then something else in the chain kills the response by returning, your code in this.chat might never complete.hope this fixes it
If you can provide a minimal reproduction in full that I can copy/paste and run to replicate the issue, I can take a closer look, but I would guess your issue lies somewhere in how this is being called, as the request alone works fine as I illustrated at https://canary.discord.com/channels/595317990191398933/779390076219686943/1385639027998195753
it looks like its kinda working now, im getting a response back, can't read the response yet but i have it now
yup i got it working now! thanks for catching the non awaited call, ive been migrating so much code from one thing to another so many little things have changed and its hard to catch them all
No worries, glad you got it figured out!