Expand my Community achievements bar.

SOLVED

Graphql endpoint not working at dispatcher

Avatar

Level 3

Version: AMS 6.5.16


Hi,

I am trying to access newly created Graphql over the dispatcher, when i try to access the same url publish i see the same results but not in dispatcher

I followed below steps to create and publish with Graphql

 

  1. Created Custom CF model
  2. Created couple of CF's in dam folder with data
  3. Created new endpoint under the /Assets/Graphql and published( selected my project as end point where i created the new cf's)
  4. Created Persisted Query under /General/GraphQL Query Editor.

ramaem12_0-1684422558049.png

author/graphql/execute.json/myproject/test2
publish/graphql/execute.json/myproject/test2

When i copied the URL and paste it in new tab it is showing the data in both author and publish but not able to access over the dispacther.
( I am getting 404 error)

Can someone explain what are the steps i need to perform here to access over the dispatcher?

FYI - I am not using any authentication for now, just want to access the JSON structure from dispatcher

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @ramaem12 

 

It appears that the GraphQL endpoint is blocked on the dispatcher.

Please check the filter section to assure that its allowed. Example:

# GraphQL Persisted Queries & preflight requests
/0061 { /type "allow" /method '(GET|POST|OPTIONS)' /url "/graphql/execute.json*" }

Also, please review if you would want to avoid caching of the GraphQL queries.


Aanchal Sikka

View solution in original post

3 Replies

Avatar

Level 2

you mostly can access the dispatcher through API call's using the endpoints just try using the postman might work

 

Avatar

Correct answer by
Community Advisor

Hello @ramaem12 

 

It appears that the GraphQL endpoint is blocked on the dispatcher.

Please check the filter section to assure that its allowed. Example:

# GraphQL Persisted Queries & preflight requests
/0061 { /type "allow" /method '(GET|POST|OPTIONS)' /url "/graphql/execute.json*" }

Also, please review if you would want to avoid caching of the GraphQL queries.


Aanchal Sikka

Avatar

Community Advisor

Hi @ramaem12 

 

As mentioned by aanchal, this is the only reason I also faced in my project. You need to allow in filter section at dispatcher level and It will resolve your issue.