Hey y'all, I'm running into an issue with the Snap...
# support
m
Hey y'all, I'm running into an issue with the Snapchat Conversion Cloud Destination. I put my freshly generated API Token in the
API Token
field as instructed in the configuration. But when rudderstack makes a call to Snapchat Conversion, I get a 401:
Copy code
{
  "response": "{\"status\":\"FAILED\",\"reason\":\"Invalid access token\"}",
  "firstAttemptedAt": "2023-08-30T16:46:20.461Z",
  "content-type": "application/json"
}
When I look at the headers in the POST request, this is what rudderstack is sending:
Copy code
"headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer ******{the last 4 characters of my api token}"
    },
If I go to edit the config, the API Token is
*********{the last 4 characters of my api token}
. Hitting the hide/show toggle does nothing but prompts a
Wrong Format
warning. My guess is that rudderstack is storing the masked token rather than the actual token, but I am not sure. I'm hoping I can get some assistance here.
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
l
Hi Cory, once a credential is persisted in backend, the raw value is not accessible from the UI. You will always see a masked value.
Hitting the hide/show toggle does nothing but prompts a
Wrong Format
warning
This is a UX bug which can be ignored for debugging the 401. I'll let the team know about this.
When I look at the headers in the POST request, this is what rudderstack is sending:
Where are you checking the headers ? Is it the Live events ?
m
Correct, in live events
l
Can you confirm that the token is valid by making a dummy call to the snapchat endpoint in the live events ?
m
If I do the exact same API call that rudderstack tried to send, but replaced the Authorization header with my token, I get a 200 response. Likewise, if I replace that new Authorization header with the
Bearer *****{last 4}
value, like what rudderstack live events is telling me is being sent, I get the same 401 error.
l
It is unlikely that RudderStack is making the API call with masked credentials. Same as destination config UI, the actual Authorization header in live events gets masked
m
I don't know if anything changed on your end, but the functionality started working as expected today.
👍 1