Coder Social home page Coder Social logo

Comments (5)

JokinenK avatar JokinenK commented on August 11, 2024 3

Before this PR gets merged or bug fixed in some other way, here is easy way to test the PR's changes out:

npm install --save git+https://github.com/JokinenK/react-instagram-embed#release/1.4.0_json

or

yarn add git+https://github.com/JokinenK/react-instagram-embed#release/1.4.0_json

Edit: The branch release/1.4.0_json only contains transpiled files created using npm run compile.

from react-instagram-embed.

yu-imu avatar yu-imu commented on August 11, 2024

My application is also faced this bug.
This bug may be caused by CORB.

search console
screen shot 2018-10-28 at 22 59 50

But I can't fix....

from react-instagram-embed.

hendra-go avatar hendra-go commented on August 11, 2024

Yup, i also experienced this problem.
Probably because of the callback ?

in firefox if you access directly

https://api.instagram.com/oembed/?hidecaption=false&maxwidth=320&omitscript=true&url=https%3A%2F%2Finstagr.am%2Fp%2FZw9o4%2F

without the callback, it correctly return js object.

but if you also include the callback like
https://api.instagram.com/oembed/?hidecaption=false&maxwidth=320&omitscript=true&url=https%3A%2F%2Finstagr.am%2Fp%2FZw9o4%2F&callback=__jp0,

it return SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

from react-instagram-embed.

hugovk avatar hugovk commented on August 11, 2024

Here's a PR to fix it: #32.

from react-instagram-embed.

sugarshin avatar sugarshin commented on August 11, 2024

I solved and released new version.

from react-instagram-embed.

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.