1,305 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-4
votes
0
answers
83
views
Google Gemini API returns API_KEY_INVALID in Node.js despite correct API key and environment setup [closed]
Error Message
[GoogleGenerativeAI Error]: Error fetching from
https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent
[400 Bad Request] API key not valid. Please pass ...
2
votes
1
answer
124
views
Twilio invalid API Key and secret pair
I'm building a web based VoIP dialing software using Twilio. However, Twilio just keeps raising an error of having invalid API key-secret pair. I've tried the following fixes:
Different regions (us1, ...
0
votes
0
answers
70
views
AWS Secret Manager retrieves key "successfully", but using it with Sendgrid results in "HTTP Error 401: Unauthorized"
I'm new to AWS and Python. I was able to create a Lambda Function trigger for an S3 Bucket to detect when a .csv file is created, then process the rows, format the data, and do an upsert to Sendgrid.
...
0
votes
1
answer
752
views
Codex with API key on Macbook not working
I had codex originally authenticate via openAI web. Since i hit my limit i would now want to upgrade to the "pay per use" via api key. After following all the steps on https://github.com/...
0
votes
3
answers
136
views
Using flutter dot env to store an API key
I'm developing an application in Flutter and I'm facing a problem. I would like to use Google Maps in my application and for that I need an API key. For security reasons, I chose to use dot env to &...
0
votes
2
answers
95
views
How to return a custom error response when using APIKeyCookie in FastAPI?
I have a POST route /publish with a dependency get_current_user.
get_current_user has as fastapi.security.APIKeyCookie as dependency.
If authenticated correctly everything is fine but if I do a curl ...
2
votes
0
answers
67
views
Google's Blogger V3 api oAuth not working anymore
I have been using the Blogger V3 api for many years. I use the official googleapis.com PHP library to retreive data and take care of the oAUth2 flow. Since a couple of days I cannot let users ...
-1
votes
2
answers
136
views
Anybody tried time doctor 2 APIs? or go through it's official docs?
I've try to register/login into time doctor 2 using register/login api and it success, after login i successfully get the auth token.
But futher when i try to access any GET route it with provided ...
0
votes
0
answers
52
views
Issue with Google Places API Key – "REQUEST_DENIED" Error
I am experiencing an issue with my Google Places API key, which is returning the following error:
{
"error_message" : "This API project is not authorized to use this API.",
"...
0
votes
1
answer
356
views
Python LangChain with Google google_vertexai or google_genai using API KEY?
How to use google_vertexai or google_genai with LangChain in Python? I get the following error:
USER_AGENT environment variable not set, consider setting it to identify your requests.
Traceback (most ...
0
votes
1
answer
1k
views
How do I enable Scalar to ask for an API Key in .Net 9?
I have 2 sets of controllers: internal and external
I have JWT auth on internals and API Key auth on externals.
How do I setup my API to enable Scalar to ask for API key but only for the external ...
0
votes
1
answer
136
views
Using Capsolver TwoCaptcher does not work (Java)
I try to solve a captcher from the following standard homepage:
https://google.com/recaptcha/api2/demo
For that I am using the following code:
String apiKey = "CAP-XXX";
...
1
vote
0
answers
33
views
How to secure API calls to our protected API from an embedded UI widget on external websites?
We are currently expanding our functionality beyond the internal services. We want to make a chat widget that our subscribers can embed on their website and let any visitor start a quick Q&A ...
1
vote
0
answers
57
views
Getting Mailgun 401 error - Not able to read API KEY from env variables
I'm developing a NextJS application with typescript, trying to set up mailgun.
I have this mailgun.ts setup file:
import config from "@/config";
import Mailgun, { MessagesSendResult } from &...
1
vote
0
answers
87
views
Restrict Youtube API_KEY to only my android app
I'm trying to restrict my API_KEY to only my app. In the Edit API key page I set to 'Android apps' and set the package name and Fingerprint.
The package name is the same as in my AndroidManifest.xml:
&...