Giter Site home page Giter Site logo

rajput-hemant / jiosaavn-api-ts Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 9.0 2.39 MB

๐ŸŽต A simple wrapper for the JioSaavn API powered by Hono.js ๐Ÿ”ฅ.

Home Page: https://jiosaavn.rajputhemant.me

License: MIT License

Shell 0.08% TypeScript 99.92%
api bunjs honojs jiosaavn-api jiosaavn-downloader music music-api nodejs typescript vercel

jiosaavn-api-ts's Issues

[Help Wanted] Incomplete Data Retrieval on Vercel Edge Functions

I'm encountering an issue with my API, it appears that the API does not retrieve complete data when using Vercel Edge functions. Even after configuring the region to Mumbai, India (South) - bom1.
To illustrate the problem, consider the following examples:

Vercel Edge function

  • /modules
    The mixes and city_mod fields are not populated.

  • /song/recommend
    The Edge version of the API does not provide recommendations for certain songs.

Serverless function on the community based Rust runtime

  • /modules
    Verify if the mixes and city_mod fields are populated.

  • /song/recommend
    Confirm that the serverless version of the API successfully provides recommendations for the same songs.

Due to these issues, I am considering migrating my function from Vercel Edge to a serverless architecture.
I've explored using Hono.js, offers a handler for Node.js serverless functions. However, I'm encountering difficulties in making it work.

Below is the code snippet I've attempted for transitioning from Edge to serverless:

import { handle } from "@hono/node-server/vercel";
import { app } from "../src";

export default handle(app);

Unfortunately, I'm encountering the following error on running vc dev:

Error: ERR_UNSUPPORTED_DIR_IMPORT /mnt/rajput-hemant/Projects/Typescript/jiosaavn-api-ts/src /mnt/rajput-hemant/Projects/Typescript/jiosaavn-api-ts/api/index.ts

Please let me know if any further information is needed to investigate and resolve this issue. Thank you!

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.