Skip to content

Bad value in untransformObject undefined  #1316

Closed
@zleman1593

Description

@zleman1593

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Environment Setup

Local

OSX 10.11.3
MongoDB on ObjectRocket v 3.0.9

Steps to reproduce

Clone this bug reproduction repo, npm install & npm start

https://github.com/zleman1593/parse-server-transform-bug

I migrated a copy of the database to object rocket and I am hosting it from there. This repo uses that db.

If you want to connect to a local db, here is the mongo dump you can use mongorestore with.

https://www.dropbox.com/s/gsfqvwp0lsien90/MongoDump.zip?dl=0
If you want a quick look at the problematic data, I exported it from parse (JSON)(I did not use this for the migration) : https://goo.gl/61X5Jv

Make this query:

curl -X GET \ -H "X-Parse-Application-Id: XXXXXXXXX" \ -H "X-Parse-Master-Key: XXXXXXXXXXX" \ -G \ --data-urlencode "where={\"clientId\":\"QArG4hBu8z\"}" \ http://localhost:1338/parse/classes/ProviderClient

Use this application ID: 3fko3frQqNK20Lx59EbfeP2X3u5Iy3eTstMsIze5 Use this master key: DFYYoY6iWXzgbSDxfZqJHrNaOfHZrpCHlH1vmBau
You can use other keys, just don't forget to switch them out in index.js

Query Response

{"code":1,"message":"Internal server error."}

Logs/Trace

error: Uncaught internal server error. bad value in untransformObject undefined

The error is throw here: https://github.com/ParsePlatform/parse-server/blob/f0ebb7bae6631493eb0fce608c4948ad37636b7c/src/transform.js in the untransformObject function when it comes across a function in the mongoObject when reading the lastMessageTimetoken BSON field which is a 'NumberLong'.

Issue #665 is likely related. @gfosco

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions