7,673 questions
1
vote
0
answers
33
views
Power pages portal auth token validation failed with public key
I created a self-signed certificate and added it in power platform admin center using the following commands:
$certificateName = "powerpages.yourdomain.com"
$certPassword = ConvertTo-...
0
votes
0
answers
64
views
How to access usageMetadata (token usage) from GenerateContentResponse using google-genai Java SDK (v1.23.0) with Gemini 2.5 Flash?
I use AI only for translating korean into English and arranging my text.
I'm working with the Google GenAI Java SDK — com.google.genai:google-genai:1.23.0 — in a Spring Boot 3 application, running ...
-3
votes
1
answer
92
views
How to get token usage (prompt/completion tokens) from GenerateContentResponse using google-genai Java SDK v1.23.0? - springboot, github codespace
I am using the com.google.genai:google-genai:1.23.0 Java SDK in a Spring Boot 3 project to call the Gemini API (gemini-1.5-flash).
I can successfully generate content and get the answer text like this:...
0
votes
1
answer
69
views
JX OAuth Request Token Issue, getting invalid_client despite having the values obtained from JH
We are trying to test the Scenario: JX OAuth Request Token request.
But when sending the "Request Token" request, we are getting:
{
"error": "invalid_client",
"...
0
votes
0
answers
59
views
Laravel session lifetime on recursive ajax
I'm using laravel 8 with SESSION_DRIVER=file
I have code that run like below, and I have a problem why the recursive not extending the expired time of session?
Each process take 30sec, but after ...
0
votes
0
answers
26
views
How to handle expired session during incoming VoIP call (iOS, Chime SDK)?
I’m implementing VoIP calls on iOS using the Amazon Chime SDK with PushKit + CallKit.
The flow works fine when the user is logged in and the session is valid.
Scenario:
User is logged in.
App is in a ...
0
votes
1
answer
64
views
Assigning unique tokens to starting pods [closed]
I'm trying to find an (elegant) solution to the following problem: I have a Deployment that I want to be able to scale from 2 - 4 pods.
I have a pool of 4 unique tokens to access a resource, external ...
1
vote
2
answers
133
views
Laravel 12 - Angular 20 - Sanctum SPA - CSRF Token mismatch
Im trying to build a login and create user with CSRF Tokens and it wont run i tried for 3 days now and it wont work because of CSRF token mismatch. i think im missing something small or idk if its a ...
2
votes
0
answers
58
views
How to download file contents from private BitBucket repository using API token
So far I got this
def _parse_bitbucket_url(value: str) -> Dict[str, str]:
parsed_url = urlparse(value)
if not parsed_url.scheme or "bitbucket.org" not in parsed_url.netloc:
...
1
vote
1
answer
59
views
Is it possible to make Bison utilize external token definitions?
I am working on building a compiler using Flex/Bison, and tried to utilize a tokens.h file to define the tokens used by the parser and lexer.
#ifndef TOKENS_H
#define TOKENS_H
enum TokenType {
...
0
votes
0
answers
75
views
What is the correct way to get the remaining tokens for a chat session in FoundationModels?
I currently calculate the remaining tokens like this:
var conversationHistorySize: Int {
conversationHistory.components(separatedBy: .whitespacesAndNewlines).count
}
private let maxTokens = 4096
...
1
vote
0
answers
75
views
ClientAuthenfication implementation issue Spring Cloud Vault token
I am currently working on a very starter for Spring Cloud Vault, because of autoconfiguration capabilities offered and the possibility to inject secrets in the environment bean at runtime. My ...
0
votes
0
answers
55
views
Setting up spotipy in pythonanywhere
I'm making a program which I want to run continuously (hence the pythonanywhere):
def setup():
spOauth = SpotifyOAuth(client_id=CLIENTID,
client_secret=CLIENTSECRET,
...
0
votes
1
answer
40
views
"Token Purchase Failing with 'Insufficient Reserve' Error in Solidity Smart Contract"
I’ve deployed two contracts for a token sale system on BSC Testnet:
TestUSDT: https://testnet.bscscan.com/address/0xD93221735d2323a7ddca9e82d0EF44040C570848#readContract (Mock USDT)
APTToken: https://...
0
votes
0
answers
54
views
Vault OIDC token TTL doesn't follow Keycloak session duration
I'm integrating Vault with Keycloak using OIDC auth method. The login flow works correctly, and Keycloak sessions are created as expected. However, Vault issues tokens with its own TTL and does not ...