Coder Social home page Coder Social logo

Comments (2)

beebase avatar beebase commented on May 29, 2024

I managed to get rid of the "uuid" error (mapping issue, upgraded to hasura 1.3.4 beta2)

Now I'm getting this error in the hasura server log

{"type":"websocket-log","timestamp":"2020-12-21T12:39:33.258+0000","level":"error","detail":{"event":{"type":"operation","detail":{"request_id":"57dba924-0bf5-43cf-988d-9026d739c2a4","operation_id":"7","query":{"variables":{},"operationName":"ProductSubscription","query":"subscription ProductSubscription {\n product {\n id\n nPrice\n sDetails\n sDuration\n sLocation\n sTitle\n __typename\n }\n}\n"},"operation_type":{"type":"query_err","detail":{"path":"$.selectionSet.product","error":"field \"product\" not found in type: 'query_root'","code":"validation-failed"}},"operation_name":"ProductSubscription"}},"connection_info":{"websocket_id":"d9b682f4-5989-43b5-bc8d-cb7097844b1d","token_expiry":"2020-12-21T12:48:34Z","msg":null},"user_vars":{"x-hasura-role":"user","x-hasura-user-id":"12155d1b-3201-407d-b122-118f38b5149a"}}}

{"type":"websocket-log","timestamp":"2020-12-21T12:39:33.258+0000","level":"info","detail":{"event":{"type":"operation","detail":{"request_id":null,"operation_id":"7","query":null,"operation_type":{"type":"completed"},"operation_name":"ProductSubscription"}},"connection_info":{"websocket_id":"d9b682f4-5989-43b5-bc8d-cb7097844b1d","token_expiry":"2020-12-21T12:48:34Z","msg":null},"user_vars":{"x-hasura-role":"user","x-hasura-user-id":"12155d1b-3201-407d-b122-118f38b5149a"}}}

Please close if this is not nhost related. If I find a solution elsewhere I'll add it here for the googlers.

from nhost-js-sdk.

beebase avatar beebase commented on May 29, 2024

ok, fixed. Had to set correct permissions on tables in the Hasura server browser.
This error indicates no permission
"error":"field \"product\" not found in type: 'query_root'"

By default HBP creates role "admin" and "public".
New users have role "user" as default, so I only had to add this role with permissions.

from nhost-js-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.