magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.54k stars 9.32k forks source link

Can't use https://www.graphqlbin.com/v2/new #37192

Closed oefterdal closed 1 year ago

oefterdal commented 1 year ago

Preconditions and environment

Steps to reproduce

Go to: https://www.graphqlbin.com/v2/new Enter: https://venia.magento.com/graphql

Expected result

Possibility to query the api

Actual result

Nothing

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @oefterdal. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

oefterdal commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @oefterdal. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @oefterdal, here is your Magento Instance: https://fc028b8b231b22afe95e6a723030f149.instances-prod.magento-community.engineering Admin access: https://fc028b8b231b22afe95e6a723030f149.instances-prod.magento-community.engineering/admin_652c Login: 14a350de Password: 8c00684d0e92

m2-assistant[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


oefterdal commented 1 year ago

https://github.com/magento give me 2.4-develop instance

oefterdal commented 1 year ago

Here is https://venia.magento.com/graphql

Screenshot 2023-03-12 at 10 50 32
oefterdal commented 1 year ago

Magento Instance: https://fc028b8b231b22afe95e6a723030f149.instances-prod.magento-community.engineering/

Screenshot 2023-03-12 at 10 52 10
engcom-Dash commented 1 year ago

Hi @oefterdal ,

Thank you for reporting this ticket,

For better understanding could please share more information about steps to reproduce, Because i am unable to access your venia link,Hence would require to know whether in which environment are you trying install venia(PWA).

Additionally require below details aparts from steps: 1.Magento 2.4.6 Base link on top of if you are installing PWA. 2.Environment details like DEV/QA/PROTECTION

Regards,

oefterdal commented 1 year ago

Paste https://fc028b8b231b22afe95e6a723030f149.instances-prod.magento-community.engineering/graphql into https://www.graphqlbin.com/v2/new

fooman commented 1 year ago

@oefterdal the errors in the screenshot indicate that this is related to CORS errors. I don't see this as something that needs to be addressed - if you wish to run your own instance you can set the headers in such a way that one can use https://www.graphqlbin.com.

oefterdal commented 1 year ago

@fooman thank you, which headers do we need to set and where do we set them on the instance?

fooman commented 1 year ago

@oefterdal that depends on your server setup. It could be done in the Nginx config for example. Another approach is to use https://github.com/graycoreio/magento2-cors. I don't think the test instances under magento-community.engineering will see this added.

engcom-Dash commented 1 year ago

Hi @oefterdal ,

Thanks for your Quick response,

We have some security constraints we are not able test this issue now and We can use altair chrome extension in order to run GraphQL queries.As per my request Kindly update the steps to reproduce,its very easy to proceed further in this case.

Let us know if we missing anything,

Regards,

oefterdal commented 1 year ago

@engcom-Dash How come the the altair chrome extension work?

m2-assistant[bot] commented 1 year ago

Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-November commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-November. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-November, here is your Magento Instance: https://fc028b8b231b22afe95e6a723030f149.instances-prod.magento-community.engineering Admin access: https://fc028b8b231b22afe95e6a723030f149.instances-prod.magento-community.engineering/admin_05d8 Login: 2644252c Password: 29df1c424188

engcom-November commented 1 year ago

Hi @oefterdal , Thank you for the response. Verified the behavior on Magento 2.4-develop instance and is reproducible however this is not Magento related issue. https://www.graphqlbin.com/v2/new is not part of https://github.com/magento/magento2/ repository and community is not able to provide fix for it in this repository. All questions, issue reports and fix for them should be addressed to the corresponding extension/owners(support). Alternatively Graphql operations can be performed using POSTMAN or Altair GraphL client chrome extension which can be downloaded from here Once the extension is downloaded on chrome browser, its easy to run any graphql query. Please refer the below screenshot for the same. image Please refer below screenshot of POSTMAN UI where graphql operations can be performed: image

m2-assistant[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Bravo commented 1 year ago

Hi @oefterdal,

We have noticed that this issue has not been updated for a period of 14 Days.
Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks.