Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The requested URL was not found on the server while creating Qr code. #420

Open
madhavyagni opened this issue Aug 24, 2024 · 0 comments
Open

Comments

@madhavyagni
Copy link

Steps to reproduce the behavior

  1. Create qrcode with instance await instance.qrCode.create
  2. getting 400 status code

Expected behavior

{
"id": "qr_HMsVL8HOpbMcjU",
"entity": "qr_code",
"created_at": 1623660301,
"name": "Store_1",
"usage": "single_use",
"type": "upi_qr",
"image_url": "https://rzp.io/i/BWcUVrLp",
"payment_amount": 75000,
"status": "active",
"description": Descp",
"fixed_amount": true,
"payments_amount_received": 0,
"payments_count_received": 0,
"notes": {
"purpose": "Test"
},
"close_by": 1681615838,
"closed_at": 1623660445,
"close_reason": "on_demand"
}

Actual behavior

Error generating QR code: {
statusCode: 400,
error: {
code: 'BAD_REQUEST_ERROR',
description: 'The requested URL was not found on the server.',
source: 'NA',
step: 'NA',
reason: 'NA',
metadata: {}
}
}

Code snippets

const qrCodeDetails = {
      type: "upi_qr",
      name: "Name",
      usage: "single_use",
      fixed_amount: true,
      payment_amount: 75000,
      description: "Descp",
      close_by: Math.floor(Date.now() / 1000) + 600,
      notes: {
        purpose: "Test",
      },
    };

    const qrCode = await instance.qrCode.create(qrCodeDetails);

Node version

20

Library version

v2.9.4

Additional Information

Trying to create qr code but its giving 400 error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant