Skip to content

Bug: Absolute URL with Drino request methods throws DrinoUrlException #410

@nathacks

Description

@nathacks

When calling any Drino request method (get, post, put, etc.) with a full absolute URL, Drino throws:

drino.post('https://example.com/api/v4/projects', { name: 'test' }).consume(); => DrinoUrlException: Invalid URL: ''

But using an instance works:

const api = drino.create({ baseUrl: 'https://example.com/api/v4' });
api.post('/projects', { name: 'test' }).consume(); => OK

Expected:
All methods (get, post, put, delete, etc.) should work with absolute URLs when using the default Drino client.

Version: drino 2.0.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions