Skip to content

TypeError: Cannot read property '__type' of null - Postgres Storage Adapter #4019

@skparticles

Description

@skparticles

Got following error, when we search User Class of certain usernames

var options = {useMasterKey:true};
var emails = ["[email protected]","[email protected]"];    
var query = new Parse.Query(Parse.User);
    query.containedIn("username",emails);
    query.find(options).then(function(objects){
        contacts = objects;
       //Handle success
    },
    function (err){
        console.log("Search Contact Error :" +err);
       //Handle Failure 
        }
    );

Error generating response. TypeError: Cannot read property '__type' of null

    2017-07-16T17:20:52.417Z - Uncaught internal server error. TypeError: Cannot read property '__type' of null
    at transformValue (/app/node_modules/parse-server/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js:102:90)
    at Array.map (native)
    at buildWhereClause (/app/node_modules/parse-server/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js:523:19)
    at PostgresStorageAdapter.find (/app/node_modules/parse-server/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js:1239:19)
    at /app/node_modules/parse-server/lib/Controllers/DatabaseController.js:1007:36
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:208:7) TypeError: Cannot read property '__type' of null
    at transformValue (/app/node_modules/parse-server/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js:102:90)
    at Array.map (native)
    at buildWhereClause (/app/node_modules/parse-server/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js:523:19)
    at PostgresStorageAdapter.find (/app/node_modules/parse-server/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js:1239:19)
    at /app/node_modules/parse-server/lib/Controllers/DatabaseController.js:1007:36
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:208:7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions