1,306 questions
2
votes
1
answer
117
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
58
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.
...
1
vote
1
answer
627
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
131
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
93
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
64
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
127
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
50
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
336
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
128
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
32
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
56
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 &...
0
votes
0
answers
30
views
How API Key Authentication work and managed by application?
I have to implement multiple type of authentication in my backend application.
JWT authentication
API key authentication
In case of JWT authentication:- After successfull authentication of user, ...
0
votes
0
answers
59
views
(Expo) Stripe iOS Build Error: "You did not provide an API key" despite Providing Key
I'm encountering an issue with Stripe integration in my Expo app when running it on a real iOS device.
Everything works fine on Android builds, iOS simulators, and Android simulators, but when I try ...
1
vote
0
answers
81
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:
&...
0
votes
1
answer
68
views
Install drf-api-key in django
I am trying to install drf-api-key in django. I am using Linux Mint 21.3. But I am getting below error.
python3 -m pip install drf-api-key
Defaulting to user installation because normal site-packages ...
0
votes
1
answer
193
views
How can I use Environment Variables for my flutter/firebase API key, app id, etc. In my google-services.json and firebase.json file
I want to upload my flutter projects to GitHub, without publicizing my API keys, I have already secured my firebase_options.dart file by removing it entirely and creating a ". env" file ...
0
votes
1
answer
628
views
How to access private api keys in a component in a NextJS application
What is the best practice for accessing a private apiKey in a nextjs component?
I have a component that needs to take an apiKey as a prop:
<Component
apiKey={apiKey}
/>
Currently I am ...
0
votes
1
answer
42
views
Querying only the price with Axios and Alphavantage.co in Nuxt
So I want to query the current price of a Stocks with alphvantage. But Alphavantage gets me this back:
{
"Global Quote": {
"01. symbol": "IBM",
"...
0
votes
1
answer
302
views
Connecting to Coinbase Sandbox API using
I am trying to use Coinbase in Sandbox mode to try out a strategy.
I created an Sandbox API using the instructions here https://docs.cdp.coinbase.com/exchange/docs/sandbox/
However, when I use them in ...
0
votes
1
answer
412
views
How to find AZURE_ENDPOINT, AZURE_API_KEY, and KNOWLEDGE_BASE_ID in the latest Azure Portal?
I'm trying to set up a custom question-answering resource in Azure, but I'm having trouble locating the following details in the new Azure Portal interface:
AZURE_ENDPOINT: The endpoint URL for the ...
1
vote
0
answers
114
views
Using APIKEY but getting "Bearer token invalid. Bearer missing or bearer value missing."
I just want to use HERE maps with the simplest of all calls to retrieve the long/lat from a given location just like
https://geocode.search.hereapi.com/v1/geocode?q=Berlin&apiKey=mykey
The ...
1
vote
1
answer
785
views
VS code not recognizing OpenAI API environmental variable
import dotenv from "dotenv";
dotenv.config();
console.log("OPENAI_API_KEY:", process.env.OPENAI_API_KEY); // this line to debug
import openaiPkg from "openai";
const ...
1
vote
1
answer
242
views
Getting google maps api key from process env
I need to add google maps api key into my .env file.
I configured my webpack according to this config and use it in my map component.
When I console log this key I can see it in console, But while ...
0
votes
1
answer
111
views
How to make .env file work in Node.js project
I made a basic Node.js/React project, and my .env file doesn't work. My project is at https://github.com/TheGElCOgecko/weather-predictor/tree/main. The main details is that I am using dotenv-webpack, ...
0
votes
1
answer
523
views
This page can't load Google Maps correctly - even with billing and API key in place
We have an issue where we get the error "This page can't load Google Maps correctly".
Steps are as follows:
The instance was created on Google Cloud (without billing in test phase) and API ...
0
votes
0
answers
91
views
API Keys for Spring Boot V3
I would like to add API Keys to my current REST API using Spring Boot V3 (and kotlin).
Right now I'm using either Basic Auth (for development and testing) or Oauth2 (for prod).
I want to add access ...
0
votes
1
answer
105
views
Firebase android and ios API keys compromised on github
I am working on a flutter chat app on android and ios.
Unfortunately, I pushed my full working folder to my GitHub repository and later on received an email from GitHub that my API keys are ...
0
votes
1
answer
749
views
Authorization policy for API key authentication without authentication scheme in ASP.NET Core 8
I want to add API key authentication to my API using an authorization policy but I get the error No authenticationScheme was specified, and there was no DefaultChallengeScheme found. The default ...
0
votes
0
answers
117
views
Code works but shows 401 client error in replit
I wrote this piece of code on my pycharm which works and still works anytime I run it on pycharm. But I needed to put the code on replit and it keeps giving me 401 client error on replit
On replit I ...
1
vote
0
answers
585
views
Elastic.Serilog.Sinks + Authentication with ApiKey
I was struggling to find a way to pass an apikey to ElasticSearch APM (Elastic.Serilog.Sinks) in order to authenticate and sink logs to my Elasticsearch stack.
The Elasticsearch Docs do not provide ...
2
votes
1
answer
4k
views
How to safely store API Keys in a database for a REST API?
I'm building a REST API that uses API keys for authentication. I want to ensure that these API keys are stored securely in my database. If I were storing user passwords, I would use Argon2id for ...
-1
votes
1
answer
2k
views
How to make a request to the OpenAI API?
I'm getting an authentication error when using my API key that I created at OpenAI.com to make a request.
This is the code that I used:
from openai import OpenAI
client = OpenAI(api_key = "Lkey&...
0
votes
0
answers
99
views
Compreface Javascript SDK React App Failed to load resource: the server responded with a status of 404 () After running command npm start
Currently running Compreface Javascript SDK webcam using IDE Visual Studio Code and running into an issue.
Once I run the command npm start I get the Chrome page to pop-up and start video. Once I ...
4
votes
0
answers
478
views
Use supabase to back a public API with api key auth
How can I use supabase as a database for a REST API, with some "api key" (something like what Stripe or Twilio does) solution?
I am trying to use supabase as the database backend for a ...
0
votes
1
answer
776
views
Why should I get credentialsUri when I have got a api-key?
When I follow this tuition try to acess gemini, I got a error:
Your default credentials were not found. To set up Application Default Credentials for your environment, see https://cloud.google.com/...
0
votes
0
answers
226
views
Mitmproxy doesn't capture the traffic I need
Here is my problem, the thing I'm trying to do is to capture the market activity from a game (I need the api key), but mitmproxy only captures player settings and a config, is there a way to get more ...
0
votes
1
answer
778
views
OpenAI API error: How do I fix error 400 when using the Chat Completions API?
I am trying to make a small webpage where a button click would allow me to fetch the latest news in German from the OpenAI API.
Unfortunately, there's something wrong with my API calls which I want ...
0
votes
2
answers
27
views
Can't upload file to Audino
When I run this code to upload file to Audino on Python VSC, it occurs error: "'API_KEY' is not recognized as an internal or external command,
operable program or batch file."
Code:
import ...
0
votes
2
answers
8k
views
Accessing an API using a key in python
I'm new to using APIs in python and trying to access an API at the moment but keep getting an error code that based on the API documentation means I do not have access. I do have an account with an ...
-3
votes
1
answer
211
views
youtube api quota limit of 10000api
I m using Youtube Api key in my project and 1000 api requests ha ve been made.
Does anyone know that once we reach quota limit of 10000api request with google api the quota is over forever or it will ...
0
votes
1
answer
818
views
Beginner, I am stuck on setting up to use the GPT 3.5 model in Jupyter Notebook?
I am completely new, so apologies in advance.
I have Python 3.11.4 installed on my Mac.
According to the OpenAI Quickstart guide, I must install the OpenAI Python library by running 'pip install --...
0
votes
1
answer
498
views
When hashing an API key, should I hash the suffix / prefix as well?
I am generating API key similarly to Stripe where my key is {prefix}_{guid}_{suffix}.
Prefix is a constant
Guid is the "password" portion of the key
Suffix is a random 4 character string ...
0
votes
0
answers
377
views
403 error when requesting Petfinder API Key
I created a Petfinder account and tried getting an API key through https://www.petfinder.com/developers/signup/ but when I fill out my information, I get a 403 Forbidden error. Has anyone encountered ...
1
vote
1
answer
41
views
building an oracle with chainlink to POAO
i just try to find out how to build an oracle on chainlink to the POAP-API. I get the impression there is something wrong in my approach. My Goal is to find out if an adress had mint the token of our ...
0
votes
1
answer
426
views
Locust : Not able to use the config value from env file
I am trying to run a locust test but I am not able to use the .env file values
.env file contains
"Value": diuqriqjqj
In the locust.py I have added
apiKey = os.environ.get("VALUE", ...
0
votes
1
answer
103
views
Working outside of application context when using flask_api_key
Based on https://pypi.org/project/flask-api-key/ I am trying to implement:
from flask import Flask
from flask_api_key import APIKeyManager, api_key_required
app = Flask(__name__)
my_key_manager = ...
1
vote
1
answer
265
views
Using google maps api key in open source GitHub repository in Flutter app
I am developing an open source Google Maps project by Flutter and I do not want the GMS API to appear in my repo when I integrate with Google Maps. I don't know how I can use the variable in the .env ...
0
votes
1
answer
442
views
Using Google drive API to load images from a folder give me error 403
I'm using the google drive api to load on my websites multiple images from a folder, It works fine one month ago, now is not working anymore, I didn't change the API key and even the folder id is ...