Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot fetch data from Netlify on-demand builders or functions in a loader (when using experimental-netlify-edge) #4176

Closed
nicolaserny opened this issue Sep 11, 2022 · 4 comments
Assignees

Comments

@nicolaserny
Copy link

What version of Remix are you using?

experimental-netlify-edge

Steps to Reproduce

  • Create a netlify on-demand builder
  • Fetch the on-demand builder from a remix loader

This behavior is very useful when we work with third-party APIs with rate limits (to cache data in Netlify with the TTL attribute).
There is a discussion about this topic here.

Expected Behavior

I should get the data from the on-demand builder.
I expect the same behavior as the regular @remix-run/netlify deployment.

Actual Behavior

You get the following error: “Recursive requests to the same deployment cannot be processed.”

@devraj
Copy link

devraj commented Jun 27, 2023

hey @nicolaserny wondering if you ever got to the bottom of this? I started a discussion earlier with my findings using edge functions on netlify. I have been using their starter which would suggest that the edge functions should work?

Wondering if you had made the source for this deployment public?

Thanks for your input and makes me feel better that I am not alone on this 😀

@nicolaserny
Copy link
Author

Hey, @devraj, it has been a while since I last played with the Netlify edge function deployment. It was experimental and did not work well with projects containing on-demand builders, so I stuck with the regular Netlify functions.
Now, Netlify edge functions are not in beta anymore. I should give it a try.
Sorry, I don't have the source of this deployment anymore.
I let you know if I have time to look deeper.

@devraj
Copy link

devraj commented Jun 28, 2023

Hey, @devraj, it has been a while since I last played with the Netlify edge function deployment. It was experimental and did not work well with projects containing on-demand builders, so I stuck with the regular Netlify functions.
Now, Netlify edge functions are not in beta anymore. I should give it a try.
Sorry, I don't have the source of this deployment anymore.
I let you know if I have time to look deeper.

Thanks heaps for responding.

I tried to create an app and got the same error, wonder if I am missing something. I posted my findings on this discussion

@MichaelDeBoey
Copy link
Member

We now recommend using the official Netlify Edge adapter

@MichaelDeBoey MichaelDeBoey closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Closed
Development

No branches or pull requests

5 participants