Giter Club home page Giter Club logo

jiosavan-api's People

Contributors

sarthak090 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

jiosavan-api's Issues

Json error

undefined:1
undefined
^

SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at /home/runner/Music-Bot/node_modules/jiosavan/lib/utils/formatter.js:47:33
at step (/home/runner/Music-Bot/node_modules/jiosavan/lib/utils/formatter.js:34:23)
at Object.next (/home/runner/Music-Bot/node_modules/jiosavan/lib/utils/formatter.js:15:53)
at /home/runner/Music-Bot/node_modules/jiosavan/lib/utils/formatter.js:9:71
at new Promise ()
at __awaiter (/home/runner/Music-Bot/node_modules/jiosavan/lib/utils/formatter.js:5:12)
at Object.songResponse (/home/runner/Music-Bot/node_modules/jiosavan/lib/utils/formatter.js:42:53)
at /home/runner/Music-Bot/node_modules/jiosavan/lib/jiosavan/songs.js:58:52
at step (/home/runner/Music-Bot/node_modules/jiosavan/lib/jiosavan/songs.js:33:23)

How to fix

CORS Error in browser

Encoutering CORS error in browser due to cross origin.

Access to fetch at 'https://www.jiosaavn.com/api.php?__call=song.getDetails&cc=in&_marker=0%3F_marker%3D0&_format=json&pids=FKUE0Xj4' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

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.