Skip to content

retry account search#90

Merged
robz merged 1 commit into
asmbly-makerspace:mainfrom
robz:retry-account-search
Apr 3, 2026
Merged

retry account search#90
robz merged 1 commit into
asmbly-makerspace:mainfrom
robz:retry-account-search

Conversation

@robz
Copy link
Copy Markdown
Contributor

@robz robz commented Apr 3, 2026

/accounts/search seems to randomly fail about once a week for the last 4 months. Happened this morning, and worked just ran when manually rerunning the script. Adding a retry to see if that addresses it.

2026-04-03T09:40:26.000Z
2026-04-03 04:40:26 INFO Starting sync cycle.
2026-04-03T09:40:26.000Z
Traceback (most recent call last): File "/home/ec2-user/NeonIntegrations/dailyMaintenance.py", line 52, in <module> main() File "/home/ec2-user/NeonIntegrations/dailyMaintenance.py", line 24, in main neonAccounts = neonUtil.getRealAccounts() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ec2-user/NeonIntegrations/neonUtil.py", line 439, in getRealAccounts neonAccountDict = getMembersFast() ^^^^^^^^^^^^^^^^ File "/home/ec2-user/NeonIntegrations/neonUtil.py", line 420, in getMembersFast return getNeonAccounts(searchFields, neonAccountDict=neonAccountDict) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ec2-user/NeonIntegrations/neonUtil.py", line 373, in getNeonAccounts raise ValueError(f"Post {url} returned status code {response.status_code}: {response.text}")
2026-04-03T09:40:26.000Z
ValueError: Post https://api.neoncrm.com/v2/accounts/search returned status code 400: [{"code":"23","message":"Search key is invalid."}]

@robz robz merged commit 261c6ce into asmbly-makerspace:main Apr 3, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant