Resources update function results in Python HTTP request InvalidSchema error
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start at nexussdk.resources.update and reproduce the request with the instance object shown in the issue. Trace how the _self value, especially the base:initial_appointmen_arm_1 form, becomes the request URL; done means the update no longer raises InvalidSchema for resources created on the Nexus sandbox.
Written by the indexing model from the issue text.
Description
I am calling nexussdk.resources.update on a resource created on Nexus sandbox (nexus-sandbox.io), and the function results in HTTP request results in InvalidSchema error: "No connection adapters were found for 'base:?rev=1'"
Here is the instance object that is used to send the request:
OrderedDict([('@context', ['https://nexus-sandbox.io/v1/resources/kcnitest/redcap/_/medredcontexttest10']), ('@id', 'initial_appointmen_arm_1'), ('_self', 'base:initial_appointmen_arm_1'), ('_constrainedBy', 'https://bluebrain.github.io/nexus/schemas/unconstrained.json'), ('_project', 'https://nexus-sandbox.io/v1/projects/kcnitest/redcap'), ('_rev', 1), ('_deprecated', False), ('_createdAt', '2019-02-12T15:53:26.937Z'), ('_createdBy', 'https://nexus-sandbox.io/v1/realms/github/users/ehsanmaag'), ('_updatedAt', '2019-02-12T15:53:26.937Z'), ('_updatedBy', 'https://nexus-sandbox.io/v1/realms/github/users/ehsanmaag'), ('title', 'Initial Appointment'), ('medred:includesInstrument', ['ex:patient_health_questionnaire_9'])])
It seems the reason is that instance["_self"] does not contain the full request URL.
How can we resolve that?
- Dominant language
- Python
- Stars
- 6
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BlueBrain/nexus-python-sdk
-
Fetch File metadata Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
BlueBrain/nexus-python-sdk#100 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
BlueBrain/nexus-python-sdk#85 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
BlueBrain/nexus-python-sdk#55 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in BlueBrain/nexus-python-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100