-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOAP handler not working for source with authentication. #5650
Comments
Thank you for creating the issue. In order to help us reproducing it, could you give more information? For example, does it work when you send a request for WSDL on some other client such as Postman, cURL etc? |
@ardatan - Thanks for reverting.
My Mesh:
This is how my <MY_TOKEN> looks like: "Bearer 123abcslkdjfks234234" Their is no issue with the source because if I downgrade the The issue I think is when the source needs authentication to return WSDL resource. This is how my projects
Thanks. |
Hi @ardatan , |
Sorry unfortunately I couldn't. I still need a reproduction :( |
If you can get any source endpoint that need authentication to return WSDL that will be enough to reproduce. Unfortunately I can not get any such source openly available online. |
Sorry as I said I tried to reproduce it but couldn't. |
Hi @ardatan ,
I got this source from: https://venia.magento.com/soap/all?wsdl_list=1 |
Could you check if the given source has this structure? |
#5689 |
@ardatan - actually we can only get the WSDL resource post authorization. So, if you directly hit this URL in chrome- this shows the error "The consumer isn't authorized to access %resources." This source that I provided above I do not know the actual Bearer token for that, but I have an exact same source that works in 0.14.25 and not in 0.94.6. |
Could you install the latest versions and try again? |
@ardatan : I verified it against the latest version i.e. So, there are two potential issues:
From this mesh we are only trying to get the currency information. But this is coming under mutation and not under query(same is for other endpoints as well)
|
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Github,
Stackblitz
or
CodeSandbox
Describe the bug
We are creating a mesh with SOAP source that needs authentication to fetch the WSDL source.
We already tried on the latest version (0.94.6), but we are getting below mentioned error:
When we are on version
0.14.25
this works but on latest version it fails. So this seems to be a bug in@omnigraph/soap
node_modules/@omnigraph/soap/cjs/SOAPLoader.js
This is how my mesh looks like:
This is how my <MY_TOKEN> looks like:
"Bearer 123abcslkdjfks234234"
To Reproduce Steps to reproduce the behavior:
Provide a SOAP source that needs authentication to fetch WSDL and this fails with the error described above.
Expected behavior
SOAP source that needs authentication should also work. As it works in version
0.14.25
and not latest so this should not happen.Environment:
@graphql-mesh/...
:Additional context
The text was updated successfully, but these errors were encountered: