Skip to content

Started to get 400 error on jupiter.quoteGet request #64

@darkdubdeep

Description

@darkdubdeep

Hi approximately from second May i started to get this error when i try to run jupiter.quoteGet method on newly created tokens

status: 400, statusText: 'Bad Request', headers: Headers { 'content-type': 'application/json', 'content-length': '115', connection: 'keep-alive', date: 'Sat, 03 May 2025 11:43:42 GMT', vary: 'origin, access-control-request-method, access-control-request-headers', 'access-control-allow-origin': '*', 'access-control-expose-headers': '*', environment: 'production', 'x-cache': 'Error from cloudfront', via: '1.1 fc5c30d1def226a87bafdb8fe4adb50e.cloudfront.net (CloudFront)', 'x-amz-cf-pop': 'CPH50-P1', 'x-amz-cf-id': 'ssUSQUFJW2M9Xkrt7et30QMZeDs9g-KBz_TvGvWaGXqXDCtLT6sdiw==', 'x-xss-protection': '1; mode=block', 'referrer-policy': 'strict-origin-when-cross-origin', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=31536000' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: false, redirected: false, type: 'basic', url: 'https://api.jup.ag/swap/v1/quote?inputMint=So11111111111111111111111111111111111111112&outputMint=GmC4q35m9ZNAXEm6HLs5J3QQfNGiiWRgmYvZvngDpump&amount=20000000' }

My code looks like this (and it still work on tokens which was published before)

const quoteResponse = await jupiter.quoteGet({ inputMint: SOL_MINT.toBase58(), outputMint: TOKEN_MINT.toBase58(), amount: lamportsToSpend.toString(), });

Should i update something in my code? Can it be connected to new lite-api.jup adress for free accounts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions