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

executeSingleOperation - [Network Error]: TypeError: Cannot read property 'hasOwnProperty' of null #12

Open
smhumayun opened this issue Jul 11, 2019 · 0 comments

Comments

@smhumayun
Copy link

Hi,

Following is my code based on README.MD:

 async search() {
        try {
            console.log("this.baseURL = " + this.baseURL);
            const response = await this.query(QUERY_SEARCH);
            return response.data.search;
        } catch (error) {
            console.error(error);
        }
    }

But I'm getting following error:

[Network Error]: TypeError: Cannot read property 'hasOwnProperty' of null
{ Error: null
    at CatalogSearchApi.didEncounterError (/Users/syed/WebstormProjects/core-api-base/node_modules/apollo-datasource-graphql/dist/GraphQLDataSource.js:47:31)
    at CatalogSearchApi.executeSingleOperation (/Users/syed/WebstormProjects/core-api-base/node_modules/apollo-datasource-graphql/dist/GraphQLDataSource.js:55:18)
    at process._tickCallback (internal/process/next_tick.js:68:7) extensions: { code: null } }

Any pointers that might help me resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant