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

[fix] Handle agent crashing when registration not successful #156 #157

Merged
merged 2 commits into from
Dec 9, 2021

Conversation

devkapilbansal
Copy link
Member

Closes #156

@devkapilbansal devkapilbansal force-pushed the issues/156-handle-registration-failing-cases branch from e31e027 to 6dbd619 Compare December 4, 2021 20:39
@@ -216,7 +216,7 @@ register() {
fi
# exit if response does not seem to come from openwisp controller
check_header $REGISTRATION_PARAMETERS
if [ ! is_http_status $REGISTRATION_PARAMETERS 201 ]; then
if ! [ is_http_status $REGISTRATION_PARAMETERS 201 ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change the registration is broken, the device keeps registering constantly. Please properly test your changes before opening pull requests.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested most of the cases and it's working fine now, thanks! 👍

@nemesifier nemesifier merged commit f85c332 into master Dec 9, 2021
@nemesifier nemesifier deleted the issues/156-handle-registration-failing-cases branch December 9, 2021 14:54
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.

[bug] Handle case in which registration returns 404 gracefully
2 participants