Not able to get Authorization code and Client Secret from TokenRequest

I am trying to create a oauth provider and oauth client using nimbus.oauth2.sdk 10.13. This is the client side code. This sends a token request using the authorization code previously received. // Initialize client information ClientID clientId = new ClientID(“12345”); Secret secret = new Secret(“abcdef”); URI redirectURL = URI.create(“http://localhost:8080/tokenResponse”); AuthorizationCode authCode = new AuthorizationCode(“aaa”); // … Read more

type 2 collector for my typescript discord js project

i have tryed to make 2 collector (first in selectMenuBuilder, and second as a ButtonBuilder) my code : const selectCollector = reply.createMessageComponentCollector({ filter: collectorFilter, time: 60000, componentType: ComponentType.StringSelect, max: 1 }); selectCollector.on(‘collect’, async (i) => { const value = i.values[0]; if (value === “AllStats”) { const embed = new EmbedBuilder() .setTitle(“AllStats”) .setDescription(“Voulez vous activé le … Read more

Exception: Service Spreadsheets failed while accessing document with id

This script worked fine for a long time, but then it started to give an error: Exception: Service Spreadsheets failed while accessing document with id.. Here is this script, the error is in the fifth line: function copyPage() { let mainPage = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(‘19.12 – 25.12.2023’); let newSheetName=”26.12.2023 – 02.01.2024″; // Имя нового листа let newSheet … Read more

getConnectors in SVN Eclipse

I am attempting to retrieve code from an SVN repository into Eclipse. I am in the process of installing SVN plugins by navigating to Help > Install New Software and providing the following site location: http://download.eclipse.org/technology/subversive/4.0/update-site/ However, when I go to Window > Preferences > SVN > Get Connectors, I encounter the issue depicted in … Read more

Concurrent priority queue with mutable priorities [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 22 hours ago. Improve this question Here is what I’d like to achieve, as … Read more

My gdb generate different core file when I attach to a process(64-bit and 32-bit)

I have a file ‘manager_server.ex’ $ file manager_server.ex manager_server.ex: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=709713ebf61f867e84d1d2818baea02b562c7ee7, not stripped I ran this file and then deleted it. Now I try generate a core file by gdb(generate-core-file),but I get different core file(64-bit and 32-bit). This is … Read more

Email template in div structure [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed yesterday. Improve this question I have written html(email template) in div structure which is to be sent in email as well … Read more

is there way solve this errow with using any

I am new to typescript in nodejs i am have this error import { Request, Response, NextFunction } from “express”; import * as jwt from “jsonwebtoken”; declare global { namespace Express { interface Request { data?: jwt.JwtPayload; } } } // Define a middleware function to validate JWT tokens export const jwtMiddleware = ( req: … Read more

How to consume a stream from an external API in my Express.js server and send it to my client at the same time? Do I need something like Kafka?

I am sending OpenAI completions from my express.js server to my iOS swift client. I can send the streams as I receive them using the pipeline and iOS client can easily access the events. import { pipeline } from ‘node:stream/promises’ const completion = await fetch(‘https://api.openai.com/v1/chat/completions’, { method: ‘POST’, headers: { ‘Content-Type’: ‘application/json’, Authorization: `Bearer ${process.env.OPENAI_API_KEY}` … Read more