Closed heddendorp closed 1 year ago
Describe the bug
When trying to fetch in SSR mode my request fails with a 500 Internal server error but that does not actually seem to be the case. The message is always Invalid URL but the request does work in the client.
Invalid URL
To Reproduce
Steps to reproduce the behavior:
npm i
npx run events:server
node dist/events/server/main.js
Expected behavior
The request should work in both modes
Environment:
+-- @angular/cli@15.1.4 +-- @angular/core@15.1.3 +-- @apollo/client@3.7.7 +-- apollo-angular@4.2.1 +-- graphql@16.6.0 `-- typescript@4.8.4
Additional context
ApolloError: Http failure response for https://tumi.esn.world/graphql: 500 Internal Server Error at new ApolloError (C:\Users\hedde\code\gatorian\dist\events\server\main.js:1:5602658) at C:\Users\hedde\code\gatorian\dist\events\server\main.js:1:5653452 at both (C:\Users\hedde\code\gatorian\dist\events\server\main.js:1:5596927) at C:\Users\hedde\code\gatorian\dist\events\server\main.js:1:5596783 at new ZoneAwarePromise (C:\Users\hedde\code\gatorian\dist\events\server\main.js:1:4106848) at Object.then (C:\Users\hedde\code\gatorian\dist\events\server\main.js:1:5596738) at Object.error (C:\Users\hedde\code\gatorian\dist\events\server\main.js:1:5596976) at notifySubscription (C:\Users\hedde\code\gatorian\dist\events\server\main.js:1:5751769) at onNotify (C:\Users\hedde\code\gatorian\dist\events\server\main.js:1:5752362) at SubscriptionObserver2.error (C:\Users\hedde\code\gatorian\dist\events\server\main.js:1:5753815) { graphQLErrors: [], clientErrors: [], networkError: HttpErrorResponse { headers: HttpHeaders { normalizedNames: Map(0) {}, lazyUpdate: null, lazyInit: [Function (anonymous)] }, status: 500, statusText: 'Internal Server Error', url: 'https://tumi.esn.world/graphql', ok: false, name: 'HttpErrorResponse', message: 'Http failure response for https://tumi.esn.world/graphql: 500 Internal Server Error', error: { errors: [Array] } }, extraInfo: undefined }
I am happy to provide any more information and help with finding out more about this issue.
Describe the bug
When trying to fetch in SSR mode my request fails with a 500 Internal server error but that does not actually seem to be the case. The message is always
Invalid URL
but the request does work in the client.To Reproduce
Steps to reproduce the behavior:
npm i
npx run events:server
node dist/events/server/main.js
Expected behavior
The request should work in both modes
Environment:
Additional context
I am happy to provide any more information and help with finding out more about this issue.