Comments (5)
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.
My application is also faced this bug.
This bug may be caused by CORB.
But I can't fix....
from react-instagram-embed.
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.
Here's a PR to fix it: #32.
from react-instagram-embed.
I solved and released new version.
from react-instagram-embed.
Related Issues (20)
- can't install this package HOT 4
- warning with peer dependencies HOT 3
- Why the major version bump to v2? Where is the breaking change?
- React Component only ouputs the client access token
- The Components did not displayed HOT 7
- `onSuccess` is being called with an error instead of `onFailure`
- 2.0.1 doesn't build with webpack 5 HOT 1
- Instagram-embed not showing due to height being 0px
- Not work for me HOT 1
- Dependency Dashboard
- Recent change of oembed to the graph api HOT 1
- Oembed view App Review HOT 4
- Not Working
- can't resolve 'querystring' in node_modules\react-instagram-embed\es' HOT 4
- cors issue instagram graphql
- componentDidUpdate - this.request is null
- ERROR in ./node_modules/react-instagram-embed/es/index.js 52:0-40 HOT 2
- 'InstagramEmbed' cannot be used as a JSX component HOT 1
- Support for React 18 HOT 2
- Action Required: Fix Renovate Configuration
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 react-instagram-embed.