You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RESTDataSource.resolveUrl doesn't work correctly for paths with a colon, e.g.
this.get('/foo:')
this throws
TypeError: Only absolute URLs are supported
The source code strips out the leading slash, which leads to the call new URL('foo:', 'http://example.com'), where foo: looks like an absolute URL without a host.
RESTDataSource.resolveUrl
doesn't work correctly for paths with a colon, e.g.this throws
The source code strips out the leading slash, which leads to the call
new URL('foo:', 'http://example.com')
, wherefoo:
looks like an absolute URL without a host.https://github.com/apollographql/apollo-server/blob/cd19cfeff260c4b948fb56f0b3b210a43858cc8c/packages/apollo-datasource-rest/src/RESTDataSource.ts#L74-L88
The text was updated successfully, but these errors were encountered: