-
Notifications
You must be signed in to change notification settings - Fork 3
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
Wrong format of urlencoded list #5
Comments
Thank you for the report. This is helpful for improving the package. Since this package is in the alpha phase we'd advise that it not be used in production scenarios as there are still issues, as you've demonstrated. At present we have no clear timeline as to when this issue will be fixed. Hopefully in the near future |
+1 Especially since https://www.statuscake.com/api/ indicates the existing API will be deprecated today: |
@tomasbasham Can this issue be addressed soon? It's a major blocker if uptime tests with contact groups can't be created via this SDK. |
Since the API doesn't support JSON payload either (which would be way easier via
|
@tomasbasham any updates on this? |
Describe the bug
When using this library trying to update an existing check, I receive a 400 because some fields use the wrong format.
The 2 specific fields I tested that a reporting bad format are
tags
and'contact_groups
.To Reproduce
Steps to reproduce the behavior:
update_uptime_test
with a list astags
orcontact_groups
Expected behavior
It works and respect the docs in https://www.statuscake.com/api/v1/#tag/uptime/operation/update-uptime-test
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
I enabled
urllib
debug level and it seems the generated URL is usingcontact_groups=111111&contact_groups=111112
instead ofcontact_groups[]=111111&contact_groups[]=111112
, not sure it's a SDK/library problem, I did a workaround usingrequests
and I had to rename the attributes to make them work.The text was updated successfully, but these errors were encountered: