-
Notifications
You must be signed in to change notification settings - Fork 34
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
"Create Label Error" when adding custom label on staging #1080
Comments
@JGreenlee interesting. given that:
I think that the problem is with a server error, probably related to the database. I checked the server logs, and it looks like the errors don't actually show up in the streamed console logs. @JGreenlee LMK if you can do this, or whether I should (not sure if you are using the devapp or re-building) |
I think I can do that. I know how to build; I will just have to learn how to log from Objective-C |
The native code is expecting a JSON string in the response, and it receives an HTML string instead. It appears to be the HTML of https://www.nrel.gov/transportation/openpath.html I think this means the server is not recognizing @shankari Is there an extra step needed to configure new routes? |
We may want to leave that log in (catch the exception, log and then rethrow) to help catch such issues in the future. Yes that is what it means. Double-checking using curl, I get...
It certainly looks like the new API endpoints have not been deployed. Double-checking deployment steps:
So we should have the new code deployed. I'm going to deploy from the image and see if I can verify. It would be good to also print out some kind of version information from the server at startup so we can verify which version is running. |
Ok so this is weird. I build the new image on Jul 23 and it was successful. But I don't see the related image in the registry Confirmed that the most recent image (the one from jul 18) does not have the changes.
So what was deployed? Was it actually the new image? @jgu2 can you take a look on whether this is related to your recent stage versus prod channel changes? |
Fixed by @jgu2, re-deployed on staging @JGreenlee @louisg1337 assuming it does, can one of you submit a PR with the code that Jack added (catch the JSON format exception and rethrow with the raw response)? It will help debug such issues more easily in the future. |
This was added in order to debug e-mission/e-mission-docs#1080
This error occurs when adding any custom label.
It is 100% reproducible using
e-mission-phone
(at master) and connecting to the staging server.However, it is not reproducible when connecting to a local instance of
e-mission-server
(also at master); even with e-mission-phone still at master and same config (I was usingstage-study
). I am perplexed by this.The error message would suggest malformed JSON, but I inspected what the UI is sending and it looks fine:
DEBUG:About to update custom label: {"key":"mode","old_label":"","new_label":"skateboard","is_new_label_must_added":true}
Googling the error message reveals that the error occurs in iOS native code. However, I couldn't find any more details in the loggerDB logs.
On the server logs, it appears that the
/customlabel/update
request is initiated and immediately exits:This is what
/customlabel/update
should be doing:...but not even "Called updateUserCustomLabel" gets logged out.
The text was updated successfully, but these errors were encountered: