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
Describe the bug
Attempting to use uplink.Url results in an AttributeError.
...
return self._check_async_results(future_response.location)
File "/home/cognifloyd/v/st2/lib/python2.7/site-packages/uplink/builder.py", line 99, in __call__
self._request_definition.define_request(request_builder, args, kwargs)
File "/home/cognifloyd/v/st2/lib/python2.7/site-packages/uplink/commands.py", line 271, in define_request
request_builder.url = request_builder.url.build()
AttributeError: 'str' object has no attribute 'build'
To Reproduce
Use uplink.Url as an argument and provide a string with a full URL.
Expected behavior
A clear and concise description of what you expected to happen.
No error.
Additional context
It looks like
commands.py line 265: request_builder.Url is set to an instance of uplink.utils.URIBuilder
commands.py line 267: eventually calls uplink.Url._modify_request()
arguments.py line 682: replace request_builder.Url with the final string
commands.py line 271: calls request_builder.url.build() assuming that it is still a URIBuilder instance.
Describe the bug
Attempting to use
uplink.Url
results in anAttributeError
.To Reproduce
Use
uplink.Url
as an argument and provide a string with a full URL.Expected behavior
A clear and concise description of what you expected to happen.
No error.
Additional context
It looks like
request_builder.Url
is set to an instance ofuplink.utils.URIBuilder
uplink.Url._modify_request()
request_builder.Url
with the final stringrequest_builder.url.build()
assuming that it is still aURIBuilder
instance.uplink/uplink/commands.py
Lines 263 to 271 in 8483dcc
uplink/uplink/arguments.py
Lines 680 to 682 in 0d29483
So, maybe what's needed is:
The text was updated successfully, but these errors were encountered: