Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error response when uploading a protocol #11

Open
FlorMaye opened this issue May 31, 2023 · 1 comment
Open

Error response when uploading a protocol #11

FlorMaye opened this issue May 31, 2023 · 1 comment

Comments

@FlorMaye
Copy link

I always get an error when I upload a protocol with the code in the readme example.

Code from readme example:
response = requests.post(
url=f"http://{ROBOT_IP_ADDRESS}:31950/protocols",
headers={"Opentrons-Version": "3"},
files=[("protocolFile", open("basic_transfer.py", 'rb')),
("supportFiles", open("helpers.py", 'rb')),
("supportFiles", open("basic_transfer_config.json", 'rb')),
]
)

Error:
Create Protocol result: {'errors': [{'id': 'InvalidRequest', 'title': 'Invalid Request', 'detail': 'field required', 'source': {'pointer': '/files'}}]}

I tryed to modify the string "protocolFile" to "files" and it looks like it works. But it might causes some error somewhere else?
I can not test it because starting a session does also not work.

@mcous
Copy link

mcous commented Jun 3, 2023

As noted in the README, these beta endpoints are no longer operational. See https://github.com/Opentrons/opentrons-integration-tools/blob/main/http-api/README.md for a basic usage guide for the latest HTTP API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants