Comments (13)
不是开源的吗,代码都在这里啊
from neteasecloudmusicapi.
账号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.SelectEnumerableIterator
2.MoveNext()\r\n at System.String.Join(String separator, IEnumerable1 values)\r\n at System.Extensions.HttpExtensions.ToQueryString(IEnumerable
1 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.
你参数肯定传错了,你代码发一下
from neteasecloudmusicapi.
接口是SongDetail ,传值是uid(119412879)
from neteasecloudmusicapi.
你调试看看,源码就在这里
from neteasecloudmusicapi.
应该是我这个歌单的问题。
from neteasecloudmusicapi.
你的参数是错的啊。。你看下源码定义,或者nodejs版的那个文档。猜一个参数去传肯定报错的
from neteasecloudmusicapi.
如果有问题开一个新issue,你问的问题和现在这个issue没太大关系,不方便管理
from neteasecloudmusicapi.
var z= await api.RequestAsync(CloudMusicApiProviders.SongDetail, new Dictionary<string, string>() { ["ids"] = "119412879" });
from neteasecloudmusicapi.
大佬,请问下 (isOk, json) = await api.RequestAsync(CloudMusicApiProviders.UserPlaylist, new Dictionary<string, string> { { "uid", uidd } });
(isOk, json) 在c#中是什么写法,(isOk, json)接受返回来的参数,一般的方法不就是返回一个的吗?
from neteasecloudmusicapi.
值元组语法糖和解构语法糖
from neteasecloudmusicapi.
刚才出错的问题我想到了,首先是获取我喜欢的音乐歌单,歌单中可能有些音乐的id是不可用的,所以出错
from neteasecloudmusicapi.
值元组语法糖和解构语法糖
膜拜大佬
from neteasecloudmusicapi.
Related Issues (9)
- 播放 mv/视频接口没有 HOT 8
- 在二维码登录等接口的Code会被判断为失败 HOT 3
- 登录出现网络繁忙
- 发送私信接口好像失效 HOT 1
- api的私信和更新用户 HOT 8
- 原来我重新造了个轮子
- 新建歌单返回错误 (NET Framework 4.7.2) HOT 4
- 暂时继续更新
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 neteasecloudmusicapi.