Skip to content
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

weird "Login failed" SOAP error upon retrieving folders #106

Closed
JoernBerkefeld opened this issue May 2, 2022 · 1 comment · Fixed by #108
Closed

weird "Login failed" SOAP error upon retrieving folders #106

JoernBerkefeld opened this issue May 2, 2022 · 1 comment · Fixed by #108
Assignees

Comments

@JoernBerkefeld
Copy link
Collaborator

'<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <soap:Header>
        <wsa:Action>http://schemas.x…5-49e7-b725-8a4e7456ccdc"><wsu:Created>2022-05-02T20:58:56Z</wsu:Created>
            <wsu:Expires>2022-05-02T21:03:56Z</wsu:Expires>
        </wsu:Timestamp>
    </wsse:Security>
</soap:Header>
<soap:Body>
    <soap:Fault>
        <faultcode xmlns:q0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">q0:Security</faultcode>
        <faultstring>Login Failed</faultstring>
        <faultactor>https://mct0l7nxfq2r988t1kxfy8sc47mq.soap.marketingcloudapis.com/Service.asmx</faultactor>
    </soap:Fault>
</soap:Body>
</soap:Envelope>'

tracked it down to here:
image

unfortunately the soap error itself is not returned. instead I get the standard Error in SOAP Payload which seems to oringinate here:
image

if I'm reading this correctly, you are setting a default error message to this.message, and then you add 2 custom attributes (errorCode and errorMessage) on top... that's a bit unfortunate given that code and message could have been used? Maybe I'm overlooking sth here....

@DougMidgley
Copy link
Owner

released v0.6 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants