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

"schema mismatch for _Session.expiresAt; expected date but got string" on version 2.0.3 #94

Closed
ghost opened this issue Jan 31, 2016 · 6 comments
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@ghost
Copy link

ghost commented Jan 31, 2016

This seems to have been mentioned in issue #32 and was supposed to be fixed, however I am still getting this error. This is not on a migrated database, but rather a newly created one by the "parse-server-example" scripts:

When trying to login, I am now getting the following error:

Body : {
"code": 111,
"error": "schema mismatch for _Session.expiresAt; expected date but got string"
}

I am currently on version 2.0.3

@rebelchris
Copy link

You should update the mongod table for _SESSION search for Session and change expiresAt from date to string ;)

On the other hand:
I did change to 2.0.3 and changed expiresAt from date to string

It seems to work, but the js sdk gives me the following error:
Uncaught Error: Tried to encode an unsaved file.

File parse-1.6.7.min.js:9164
I'm guessing it has something to do with this issue? since it was working before..

@stevenmick
Copy link

I'm on a migrated database & get the same error on sign-in as well.

EDIT: iOS SDK, by the way.

@gfosco
Copy link
Contributor

gfosco commented Feb 1, 2016

@rebelchris You should be using at least 1.6.12, which may fix your file issue, but the expiresAt date/string thing is a legit issue that we'll fix.

@gfosco gfosco added the type:bug Impaired feature or lacking behavior that is likely assumed label Feb 1, 2016
@rebelchris
Copy link

@gfosco Actually also in Parse JavaScript SDK v1.6.14 not working ;)

Edit:
So this happend when i try to login a user.
I logged the value of the parsefile and it has a _name but the _url is empty, which is causing the error.
Is this something i need to sort out or you guys are working on?

@yeahio-coltd
Copy link

I am getting this issue on Android when logging also. Please fix.

@gfosco
Copy link
Contributor

gfosco commented Feb 2, 2016

The date issue here should be corrected in #147.

@rebelchris follow along with #136 for the Files issue.

Thanks. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

4 participants