HoudiniGraphql / houdini

The disappearing GraphQL framework
http://www.houdinigraphql.com
MIT License
913 stars 98 forks source link

Add configurable timeout for pullSchema #1302

Closed SeppahBaws closed 4 months ago

SeppahBaws commented 6 months ago

Describe the feature

Currently, pullSchema uses fetch without much more, resulting in a 4-minute timeout (in my case) if the remote api is unreachable. This lead to a lot of confusion as to why my dev server wasn't starting, and it would've been neat to have it say "can't connect to your remote API" sooner.

We could do something like this: https://stackoverflow.com/questions/46946380/fetch-api-request-timeout/57888548#57888548

Criticality

cool improvement, my projects will benefit from it