-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/post new measurements #614
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
base: dev
Are you sure you want to change the base?
Conversation
@jona159 , per our conversation I am adding summary of our discussion. I tested data upload presented in this PR via senseBox:bike app.
error 422: {"code":"UnprocessableEntity","message":"Cannot read properties of undefined (reading 'decodeMessage')"} Cursor suggested the following fix, that worked for me locally Issue:Measurement upload failing with: "Cannot read properties of undefined (reading 'decodeMessage')" Root Cause:The decoder lookup was failing when content-type included charset (e.g., "application/json; charset=utf-8") Fix:Modified one file: app/lib/decoding-service.server.ts Added a normalization function and updated the decoder lookup:
Please let me know, if any furhter testing is needed. |
No description provided.