-
Notifications
You must be signed in to change notification settings - Fork 43
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
StatusCodeError: 412 #53
Comments
- unfortunately it's not fix in iteunesconnectanalytics lib yet but there is a an issue JanHalozan/iTunesConnectAnalytics#53 - with PR solving it so lets use that commit as dependency
@doguh you are my hero |
It seems like it's not over yet: var itc = require('itunesconnectanalytics');
var Itunes = itc.Itunes;
var username = 'myname';
var password = 'mypass';
var appId = '12345'; //My apple id
var instance = new Itunes(username, password, {
errorCallback: function(e) {
console.log('Error logging in: ' + e);
},
successCallback: function(d) {
console.log('Logged in');
}
});
instance.getApps(function(error, data) {
console.log(JSON.stringify(data, null, 2));
}); It returns:
|
It turns out that itunes analytics API URL was changed to |
Good catch @sann05! I'll update my pull request |
@doguh sorry for the @ but you seem to be the only active contributor at this point. Do you have some info on #43 ? My best guess is that we are using it wrong but cookies aren't explained anywhere in the readme. What does your implementation look like, do you override |
@Reiszecke I'm not using 2FA so I don't know about this issue. That being said, the session expiring after 6 hours seems normal to me, it can't last forever. In my implementation I create a |
How did you manage to make an account without 2FA tho? I would love to just do that tbh |
@Reiszecke It's an relatively old account. I never activated 2FA on it. I don't think there is a way to disable it once it has been enabled :/ |
Hey @doguh I found this fork which has it all apparently - #43 (comment) Just letting you know you may want to fetch/merge some commits into your repo too |
Connecting to iTunes Connect now results in a 412 error.
Will reject with
StatusCodeError: 412 - {"authType":"sa"}
error.See the PR below for a possible fix:
#52
The text was updated successfully, but these errors were encountered: