Comments (2)
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.
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)
- putString method returns sample image.
- Check second parameter of `storage.put(path, file)`
- Uncaught TypeError: auth.requestPasswordChange is not a function HOT 4
- [FEATURE REQUEST] User Role helper
- JWT Refresh across multiple tabs HOT 11
- Refresh lock seems to not work HOT 5
- Are source maps being generated correctly?
- Add CI
- module has no exported defaults
- change password endpoint response HOT 5
- Improve robustness of expired token handling
- AUTO_ACTIVATE_NEW_USERS is false but user still get logged in on register HOT 2
- Question: Handling errors in response HOT 3
- HttpOnly Cookies auth flow is flawed. HOT 1
- Setting a timer for a long period of time HOT 1
- `/refresh_token` gets called twice when reloading a page
- API Response object HOT 2
- onAuthStateChanged
- onAuthStateChanged Callback parameter HOT 1
- Database backups
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nhost-js-sdk.