Rails Grape API 'id is invalid' in request that requires no id
Spotify app for roku tv. Spotify API:INVALIDAPPID Intereting Posts 如何在Google Maps v2 android中顺利移动当前位置标记 在Android中启动谷歌地图应用程序的驾驶方向 为android寻找一个好的datepicker日历 将图片(照. 私はかなりJavaに慣れていて、昨日Best Before puzzle from Spotifyを試しました。 他の解決策を確認することは役に立たず、どの入力が間違った答えを出すのか理解できません。.
Denis YakovenkoI have a Grape API protected by Doorkeeper and I have a bunch of methods which work perfectly. However, there's one method that behaves weirdly. It is a GET request that requires no parameters and running it throws the following error:
Grape::Exceptions::ValidationErrors at /v1/discount_cards/all.json
id is invalid
My method looks like this:
Download softether vpn client mac. Spotify download local file on mobile. The logs say that the error happens at line 17 of the
logger.rb
file, which looks like this:My main
base.rb
class looks like this:I really cannot understand what
id
it is talking about, and, moreover, all the other api methods work absolutely fine (post, get, put, delete).Could you help me with resolving that issue?
daxI had this issue recently too, and it turned out to be an issue of code order for me. I found the answer here.
Foscam apps for mac. Grape evaluates routes in order, so with two routes, /:id and /nearby_missions, it matches /:id first, making id=nearby_missions. Will spotify download a song more then once. Then it tries to coerce nearby_missions into an Integer which fails, and you get the missing id error.
You could 'fix' this by adding requirements: /d*/ to the first route (didn't test), but you're probably just better off ordering them in the order you want them to be evaluated, which is what you did.
Create A Client Id Spotify
There's not enough info in your question for me to be sure that this is also your problem, but it could well be!
Spotify Invalid App_id
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]