Git Product home page Git Product logo

Comments (13)

govidat avatar govidat commented on September 1, 2024 7

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.

sureshthulasii avatar sureshthulasii commented on September 1, 2024 2

razorpayerrror

same issue here.

from razorpay-node.

random-techie avatar random-techie commented on September 1, 2024 1

Facing Similar Issue, Please reopen if possible.

from razorpay-node.

umanghome avatar umanghome commented on September 1, 2024

@GeorgeAnanthSoosai This was resolved in a build released some weeks ago, is this still happening for you?

from razorpay-node.

amarwavarenvtechbusiness avatar amarwavarenvtechbusiness commented on September 1, 2024

@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.

gowthamvbhat avatar gowthamvbhat commented on September 1, 2024

Same issue here.

from razorpay-node.

alamgir8 avatar alamgir8 commented on September 1, 2024

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.

webstar-code avatar webstar-code commented on September 1, 2024

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.

gowthamvbhat avatar gowthamvbhat commented on September 1, 2024

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.

sureshthulasii avatar sureshthulasii commented on September 1, 2024

@GeorgeAnanthSoosai This was resolved in a build released some weeks ago, is this still happening for you?

Again same issue.

from razorpay-node.

ranjuvs26 avatar ranjuvs26 commented on September 1, 2024

Facing same issue. Is there any solution for this ?

image

from razorpay-node.

klakshman318 avatar klakshman318 commented on September 1, 2024

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.

gowthamvbhat avatar gowthamvbhat commented on September 1, 2024

I got in contact with Razorpay support and the issue has been fixed now. Confirmed in ReactJS.

from razorpay-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.