New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spaceship::TunesClient::ITunesConnectError: invalid request body #6711
Comments
@summera I'm sure the fastlane team will react promptly, but in the meantime is there a workaround besides patching the gem? |
I'm not quite sure what the dsId is yet because I can't even load ITC right now haha. Maybe its the user's ID? So I'm not sure if Spaceship provides a way to obtain this ID already. As far as I can tell this needs to be in the request for it to work now. So immediate fix would be patching. |
@summera ITC seems updated, have a new login page layout now |
@chakming yea ITC was telling me it was down for a few and now login page looks a little different. I think everything else seems to be the same and error still exists though. dsId is different for each user. If you go to your Personal Details for your account it's the id at the end of that URL... https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ng/users_roles/#{dsid} |
@summera found one interesting thing: if I use another |
Ha. You're right. Just putting a random ID does work. This worked for me: response = request(:post) do |req|
req.url "ra/v1/session/webSession"
req.body = { contentProviderId: team_id, dsId: '123' }.to_json
req.headers['Content-Type'] = 'application/json'
end |
@summera I added a random dsId to my request body like you have, and it started working again for me as well |
I found that the actual dsId can be obtained from the user detail request in TunesClient#user_detail_data inside the |
^ worked for me as well! |
Hey everyone, thanks for the reports, I can reproduce the issue, I'm working on a fix 🚀 |
@KrauseFx just came up with this: I can open PR if you'd like. |
Hey, thanks for your patience everyone, we were able to push new releases for spaceship, pilot and deliver, please update to the latest release using Special thanks to @summera for providing a super fast fix, and @milch for reviewing all the required version bumps and dependency updates 🚀 Please let us know if that solves the issue for you. |
updated to latest version of deliver and fastlane. Invalid request body error is resolved now. ruby-2.3.0/gems/deliver-1.14.4/lib/deliver/setup.rb:63:in |
@santoshshetty2612 That's a separate issue, I'll provide a fix in a minute 👍 |
@KrauseFx thanks for the fast fixes! works perfectly for me :) |
New Issue Checklist
Issue Description
Receiving
Spaceship::TunesClient::ITunesConnectError: invalid request body
when callingSpaceship::Tunes.select_team
. The request to set the team id on line 88 is returning HTTP 400. Here is the response body:I did some digging with switching teams in ITC and it looks like Spaceship needs the
dsId
param in thera/v1/session/webSession
. Once I added this param to the request, I received a 200 and everything worked as expected.Note: by the time i got this posted there was a duplicate: #6710 . sorry about that
The text was updated successfully, but these errors were encountered: