Comments (13)
This error is reappearing since 24 May 2022.
checkout.js:1 SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse ()
at de (checkout.js:1:4093)
at aa.onmessage (checkout.js:1:77647)
from razorpay-node.
same issue here.
from razorpay-node.
Facing Similar Issue, Please reopen if possible.
from razorpay-node.
@GeorgeAnanthSoosai This was resolved in a build released some weeks ago, is this still happening for you?
from razorpay-node.
@govidat @govidat
Same issue since 24 May 2022 !
I'm using test mode.
Unable to trace, if you found any workaround or resolution also let me know.
from razorpay-node.
Same issue here.
from razorpay-node.
Same issue here..... in next.js @umanghome please check..
SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse ()
at de (checkout.js:1:4093)
at aa.onmessage (checkout.js:1:77642)
from razorpay-node.
Same issue here... 27 May 2022
SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse ()
at de (checkout.js:1:4093)
at aa.onmessage (checkout.js:1:77642)
from razorpay-node.
Steps to reproduce in React.js -
Sample component -
import {useEffect} from "react";
const RazorpayDemo = () => {
// Runs the first time the component mounts
useEffect(() => {
const script = document.createElement('script');
script.src = "https://checkout.razorpay.com/v1/checkout.js";
script.async = true;
document.body.appendChild(script);
}, []);
}
As soon as this component is mounted we get the below error,
index.js:1 SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse (<anonymous>)
at de (checkout.js:1:4093)
at aa.onmessage (checkout.js:1:77642)
Any subsequent re-renders of the component, logs the same error in browser console
from razorpay-node.
@GeorgeAnanthSoosai This was resolved in a build released some weeks ago, is this still happening for you?
Again same issue.
from razorpay-node.
Facing same issue. Is there any solution for this ?
from razorpay-node.
load checkout.js
file from local https://checkout.razorpay.com/v1/checkout.js
checkout.js - replace JSON.parse(e) with JSON.parse(ce(e))
and verify!
from razorpay-node.
I got in contact with Razorpay support and the issue has been fixed now. Confirmed in ReactJS.
from razorpay-node.
Related Issues (20)
- `name` field is mandatory in create customer method HOT 3
- Property 'validatePaymentVerification' does not exist on type 'typeof Razorpay' HOT 3
- Razorpay Version 2.9.1 for NodeJS uses Vulnerable Dependencies HOT 4
- Customer Already exists error HOT 13
- cant verify signature HOT 8
- Issue with create customer when customer is already exist and fail_existing value is 0 HOT 1
- [Feature]: Type definition for Webhook Events. HOT 1
- Do we have payment link with qr code HOT 3
- Promise rejection without error in `instance.orders.create()` HOT 1
- Authentication failed in test mode for razorpay connection works in localhost but for same keys fails on server HOT 1
- [Documentation]: Incorrect type in notes type in refund
- [Feature]: Razorpay X support in nodejs SDK HOT 1
- how to update a subscription plan via API
- [Feature]: Create Offers from API HOT 1
- I am unable to make payment through my website in MERN stack HOT 2
- request.body is empty in webhook request
- IP is not required and should not be sent in product configuration node sdk HOT 1
- Invalid Pan field when creating Linked account using razorpay-node
- [Feature]: More responsiveness from maintainers. Maybe take help of contributors? HOT 2
- Getting error while updating an active subscription HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from razorpay-node.