-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Error: Tried to encode an invalid date. #1077
Comments
Hi @gimdongwoo, the best way to illustrate an issue is with a failing test. Any chance you can pinpoint the specific object that causes Parse Server to respond with this error message? |
I'm getting the same with v2.1.6 error from a call to Parse.Query.lessThan() My cloud code is and the rest of my stack trace is: |
Parse Cloud Code and parse-server Cloud Code are two different environments, and there are bound to be some small differences between the two. We are closing this issue due to a lack of sufficient information. Note that we expect that some developers will need to update their Cloud Code when migrating to parse-server, and we are not considering minor differences between the two environments as actionable issues in parse-server. Please refer to this issue for an example of a great bug report. You may use Server Fault for questions about managing Parse Server. For code-level and/or implementation-related questions or technical support, please refer to Stack Overflow. |
This pull request should fix this issue |
I found this issue to happen anytime we try to save a date with a UTC offset of +0000 This is even after updating to [email protected] |
For implementation related questions or technical support, please refer to the stackoverflow community.
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
Environment Setup
local & heroku
Steps to reproduce
curl -X GET
-H "X-Parse-Application-Id: "
http://localhost:5000/parse/classes/Alarms
Logs/Trace
web.1 | Uncaught internal server error. [Error: Tried to encode an invalid date.] Error: Tried to encode an invalid date.
web.1 | es/parse-server/lib/transform.js:714:31)
The text was updated successfully, but these errors were encountered: