Giter Club home page Giter Club logo

Comments (13)

wwh1004 avatar wwh1004 commented on May 29, 2024

不是开源的吗,代码都在这里啊

from neteasecloudmusicapi.

pridejoy avatar pridejoy commented on May 29, 2024

账号ID: 119412879

pplicationException: 获取歌曲详情失败: {
"code": 502,
"msg": "Type: \r\nSystem.UriFormatException\r\nMessage: \r\nInvalid URI: The Uri string is too long.\r\nSource: \r\nSystem.Private.Uri\r\nStackTrace: \r\n at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)\r\n at System.Uri.EscapeDataString(String stringToEscape)\r\n at System.Extensions.HttpExtensions.<>c.b__0_0(KeyValuePair2 t) in C:\\projects\\neteasecloudmusicapi\\NeteaseCloudMusicApi\\System\\Extensions\\HttpExtensions.cs:line 10\r\n at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()\r\n at System.String.Join(String separator, IEnumerable1 values)\r\n at System.Extensions.HttpExtensions.ToQueryString(IEnumerable1 queries) in C:\projects\neteasecloudmusicapi\NeteaseCloudMusicApi\System\Extensions\HttpExtensions.cs:line 10\r\n at NeteaseCloudMusicApi.util.request.createRequest(HttpClient client, HttpMethod method, String url, IEnumerable`1 data_, options options) in C:\projects\neteasecloudmusicapi\NeteaseCloudMusicApi\util\request.cs:line 134\r\nTargetSite: \r\nChar[] EscapeString(System.String, Int32, Int32, Char[], Int32 ByRef, Boolean, Char, Char, Char)\r\n----------------------------------------\r\n"

from neteasecloudmusicapi.

wwh1004 avatar wwh1004 commented on May 29, 2024

你参数肯定传错了,你代码发一下

from neteasecloudmusicapi.

pridejoy avatar pridejoy commented on May 29, 2024

接口是SongDetail ,传值是uid(119412879)

from neteasecloudmusicapi.

wwh1004 avatar wwh1004 commented on May 29, 2024

你调试看看,源码就在这里

from neteasecloudmusicapi.

pridejoy avatar pridejoy commented on May 29, 2024

应该是我这个歌单的问题。

from neteasecloudmusicapi.

wwh1004 avatar wwh1004 commented on May 29, 2024

你的参数是错的啊。。你看下源码定义,或者nodejs版的那个文档。猜一个参数去传肯定报错的

from neteasecloudmusicapi.

wwh1004 avatar wwh1004 commented on May 29, 2024

如果有问题开一个新issue,你问的问题和现在这个issue没太大关系,不方便管理

from neteasecloudmusicapi.

wwh1004 avatar wwh1004 commented on May 29, 2024

var z= await api.RequestAsync(CloudMusicApiProviders.SongDetail, new Dictionary<string, string>() { ["ids"] = "119412879" });

from neteasecloudmusicapi.

pridejoy avatar pridejoy commented on May 29, 2024

大佬,请问下 (isOk, json) = await api.RequestAsync(CloudMusicApiProviders.UserPlaylist, new Dictionary<string, string> { { "uid", uidd } });

(isOk, json) 在c#中是什么写法,(isOk, json)接受返回来的参数,一般的方法不就是返回一个的吗?

from neteasecloudmusicapi.

wwh1004 avatar wwh1004 commented on May 29, 2024

值元组语法糖和解构语法糖

from neteasecloudmusicapi.

pridejoy avatar pridejoy commented on May 29, 2024

刚才出错的问题我想到了,首先是获取我喜欢的音乐歌单,歌单中可能有些音乐的id是不可用的,所以出错

from neteasecloudmusicapi.

pridejoy avatar pridejoy commented on May 29, 2024

值元组语法糖和解构语法糖

膜拜大佬

from neteasecloudmusicapi.

Related Issues (9)

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.