Message Boards Message Boards

0
|
1479 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Get more info from SecuredAuthenticationKey failure?

Posted 1 year ago

I'm attempting to interact with a Google API that Wolfram Language doesn't yet have a service for. I think I've configured the SecuredAuthenticationKey correctly, but when I try to use it, like this:

URLRead[
 HTTPRequest["https://docs.googleapis.com/v1/documents", <|Method -> "POST"|>],
 "BodyByteArray",
 Authentication → mySecuredAuthenticationKey
]

It just fails with "SecuredAuthenticationKey::atok: Couldn't retrieve access tokens from https://oauth2.googleapis.com/token."

Can I access more information about the failure? I would guess that the server's response tells me what's wrong with my request, but I can't see it.

(I tried NetworkPacketTrace, but it was far too granular for me to track the server's response.)

POSTED BY: Tom Lieber
2 Replies
Posted 1 year ago

Yeah, that’s what solved it for me.

POSTED BY: Tom Lieber
Posted 1 year ago

It's not an answer to this question, but I did get past the error by switching from TwoLegged to ThreeLegged authentication. I still would like to be able to debug this, though.

POSTED BY: Tom Lieber
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract