#An action seems to be polled.

1 messages · Page 1 of 1 (latest)

high widget
#

Positive you aren't using apollo and have it set to poll the query?

orchid reef
#

Quite sure I am not, I am using the indie stack

orchid reef
#

I removed all the code in the file, and it gave me the following error message:

Error: You made a POST request to "/graphql" but did not provide an `action` for route "routes/$example", so there is no way to handle the request.
high widget
#

You've got something somewhere making that poll

#

I'd inspect any hooks or services you have

orchid reef
#

Will give it a check

#

Yeah, I don't see any polling on the action for that file

#

Nor do I fully understand why the indie-stack performs that /graphql request

high widget
#

well it may not be on that file. Something else in your app can poll that route

#

an action is just a POST/DELETE/PUT on a url

#

I haven't used the indie stack. So maybe it is something in there. But I'd bet there's a rogue component/service doing it

orchid reef
#

I've tried eliminating things gradually, and it seems to survive my commenting. It is only one place where I am not using a loader.

I've made apps with remix before, but I've never met this problem where remix itself is sending a post request to graphql, and for some weird reason a random route's action is trying to process it

high widget
#

@orchid reef You ever figure it out? I'm curious if it was remix or some random library doing it

orchid reef
#

I think I figured it out, and the answer is kinda embarassing. I am pretty sure it was me. I also develop with graphql, and I think I had a website up and it polled on "/graphql" in one of my tabs.

high widget
#

Lol I TOLD you XD
Happens though. At least you figured it out!

#

Oh man, I bet that was frustrating though. I feel that pain.