Skip to content

Fix error 222 in alta-open-lambda #95

@robz

Description

@robz

The alta-open-lambda fails 1-2% of the time, due to a 222 error. It seems we need to handle the response and update the merged account:
https://developer.neoncrm.com/accounts/#handling-http-222

Examples:

[ERROR] ValueError: Get https://api.neoncrm.com/v2/accounts/9244 returned status code 222
Traceback (most recent call last): File "/var/task/alta_open_lambda/lambda_function.py", line 303, in lambda_handler openPathUpdateSingle(neon_id) File "/var/task/openPathUpdateSingle.py", line 16, in openPathUpdateSingle account = neonUtil.getMemberById(neonID) File "/var/task/neonUtil.py", line 272, in getMemberById raise ValueError(f"Get {url} returned status code {response.status_code}")	
2026-05-09T13:04:50.120Z	Get https://api.neoncrm.com/v2/accounts/9244 returned status code 222

https://us-east-2.console.aws.amazon.com/cloudwatch/home?region=us-east-2#logsV2:log-groups/log-group/$252Faws$252Flambda$252Falta-open-update/log-events$3FfilterPattern$3Dreturned+status+code+222

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions