Prisma1: Can't test permission queries anywhere

Created on 20 Nov 2017  路  13Comments  路  Source: prisma/prisma1

Current behavior
Open a Permission Tab from the web console, can't run any SomeXXXExists query

Reproduction

  • Login to the console
  • Click Playground
  • Click on the Key Icon of the top right corner
  • run query QueryTest($user_ID:ID!){ SomeUserExists(filter:{id:$user_ID}}
  • Get an error stating that there's no such query, and then relating me to _allUsersMeta and stuff.

Please check this forum post with additional information such as screenshots and logs.

Expected behavior?
Should run any SomeXXXXExists with no problem from the special permissions tab of the web console.

areconsole bu2-confirmed areplayground

Most helpful comment

Well, I'm still getting this issue in the console...
image

All 13 comments

The same thing applies to the permissions endpoint (https://api.graph.cool/simple/v1/c......./permissions)

@marktani I no longer run into this issue all of a sudden, so I assume there was a fix?

My understanding is that the issue described in the OP is still reproducible (at least for some versions/machines). I was not able to reproduce problems you reported about https://api.graph.cool/simple/v1/c......./permissions directly.

My issue was exactly the same as described here, but on the permissions endpoint directly. That seems fixed now.

No, the issue is now fixed, don't know which commit was though, but it seems that all SomeXXXExists queries are accesible through either the Playground or simpleApi/permissions with Bearer platformToken in the Authorization header field.

Well, I'm still getting this issue in the console...
image

Are you getting any useful logs @kbrandwijk ? I tried in different browsers and projects and it's fixed for me I think.

image

Windows 10 Pro 17025.rs_prerelease.171020-1626
Chrome Version 62.0.3202.94 (Official Build) (64-bit)

Thanks, we're looking into a fix for that particular error soon. I'll revisit this issue after a fix is out 馃檪

well even though I can access all permission queries, i'm still getting that same error so I don't think it has to do with the issue .

UPDATE: It's no longer a bug, don't know which commit was the fix though. Is it fixed for you @kbrandwijk ?

@dukuo It's working now, apart from the slight inconsistency that the permission query tab shows no headers, even though it is using an Authorization header. If I connect to the /permissions endpoint playground directly, I also need to add that header.
image

The latest playground version does not show the permission tab anymore, as it had a couple of problems. Please see instructions to work with the permissions endpoint directly here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nikolasburk picture nikolasburk  路  3Comments

sedubois picture sedubois  路  3Comments

marktani picture marktani  路  3Comments

hoodsy picture hoodsy  路  3Comments

schickling picture schickling  路  3Comments