Hi Team, I am calling a google map api in my suitescript. And then suddenly it throws an error "Insufficient privileges" whereas, we haven't change anything on the google side either on NS side. What do you think the problem here?
n
Nathan L
03/15/2023, 12:20 PM
Perhaps your token expired? Thats the only thing i can think of that would have changed, if you didnt make any changes in either system
t
Tyn Guardian
03/15/2023, 12:27 PM
🤔 I am sorry I am not so very familiar on this. But do you happen to know where I can check the expiration of API key in google? All I can see API restrictions and creation date no expiration
Tyn Guardian
03/15/2023, 12:31 PM
And just to add up, when I use the URL I print on the console and paste it on the browser I get the data I needed
n
Nathan L
03/15/2023, 12:50 PM
Ah I was just taking a guess. I’m actually not super familiar with googles api either.
It’s interesting that you are able to get the data manually through the browser. That makes me think that there may be some issue with your headers in the suitescript. But if it was working before I’m not sure why it wouldn’t now