Closed yoshiya8 closed 2 years ago
You may be able to bypass this issue by setting '/' as a bypass char during usage. https://github.com/Chaffelson/nipyapi/blob/bf25635caedb30a25adb39a8cba21dd286a38dd1/nipyapi/config.py#L157
That is an intriguing workaround - I think it will work - thanks!
BTW it appears this is an issue with the swagger.json
that does not specify a distinction between resource type and resource ID. I think the "fix" is a matter of an updated/correct API definition used to generate this code.
This above approach resolves the issue for me. Thank you, @Chaffelson
Description
Encountered HTTP 500 (server error) when attempting:
What I Did
Error/Stacktrace:
Urgency
I need this as part of my NiFi deployment capability. It is a critical enough that I will be making a pull request. The problem occurs because both the resource path parameter has the value
parameter-contexts/156c43ae-017d-1000-b070-8588032f859b
" Thecall_api
method then URL encodes the/
in there to%2F
- the server does not like this, because the/
must be preserved as a path separator.