Skip to content
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

Anyone else getting "Unable To Find Sales And Trends URL"? #27

Closed
GoogleCodeExporter opened this issue Feb 5, 2016 · 10 comments
Closed

Comments

@GoogleCodeExporter
Copy link

Hey,

I've been experiencing some issues with the script at the moment, has anyone 
else?
The "Unable To Find Sales And Trends URL" error keeps showing

I've waited for about 10 hours but the error still happens

Maybe change to iTunesconnect?

Thanks

Original issue reported on code.google.com by ad...@vmlweb.co.uk on 28 Oct 2010 at 11:35

@GoogleCodeExporter
Copy link
Author

Yep, I getting the error as of today. Haven't had time to research the issue 
though. Will get to it soon.

Original comment by kirbyt.w...@gmail.com on 29 Oct 2010 at 2:28

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Its iTC that is unavailable for maintenance. And redirecting to:
https://itunesconnect.apple.com/iTCUnavailable.html

Original comment by Bjorn.Em...@gmail.com on 29 Oct 2010 at 6:47

@GoogleCodeExporter
Copy link
Author

iTC is back online and it's still not working

Original comment by ad...@vmlweb.co.uk on 29 Oct 2010 at 10:25

@GoogleCodeExporter
Copy link
Author

the sales url has changed.

this fix worked for me:

Index: appdailysales.py
===================================================================
--- appdailysales.py    (revision 63)
+++ appdailysales.py    (working copy)
@@ -261,22 +261,7 @@
     if options.verbose == True:
         print 'Accessing Sales and Trends reporting web site.'

-    try:
-        match = 
re.findall('/WebObjects/iTunesConnect.woa/wo/(.*?).0.9.7.2.9.1.0.0.3', html)
-        backtrackedId = match[0]
-    except:
-        if options.verbose == True:
-            print 'Unable to find the Sales and Trends URL.'
-            raise
-        else:
-            raise ITCException, 'Unable to find the Sales and Trends URL.'
-
-    # Click through to the Sales and Trends.
-    salesAndTrendsPath = 
'/WebObjects/iTunesConnect.woa/wo/%s.0.9.7.2.9.1.0.0.3'
-    urlSalesAndTrends = urlITCBase % salesAndTrendsPath % backtrackedId
-    if options.debug == True:
-        print 'Sales and Trends URL: ', urlSalesAndTrends
-
+    urlSalesAndTrends = 'https://reportingitc.apple.com/'
     html = readHtml(opener, urlSalesAndTrends, options=options)

     # We're at the vendor default page. Might need additional work if your account

Original comment by ferenc.v...@gmail.com on 29 Oct 2010 at 10:59

@GoogleCodeExporter
Copy link
Author

That's wierd it still doesn't work for me with this change
I have made some modfications of my own to log it to a MySQL DB, could that be 
the problem?

Heres my version:
http://www.heypasteit.com/clip/ON6

Original comment by ad...@vmlweb.co.uk on 29 Oct 2010 at 12:15

@GoogleCodeExporter
Copy link
Author

all rows starting with - should be removed.
then add the extra line starting with + 

urlSalesAndTrends = 'https://reportingitc.apple.com/'

also i would suggest to put your sql part into a separate script to avoid 
merging

sometimes the script fails the first time it's run then it works the second 
time.
well, this is strange :)


Original comment by ferenc.v...@gmail.com on 29 Oct 2010 at 1:41

@GoogleCodeExporter
Copy link
Author

ah sorry didn't understand the -
thanks works now

Original comment by ad...@vmlweb.co.uk on 29 Oct 2010 at 1:47

@GoogleCodeExporter
Copy link
Author

Thanks, ferenc. Works for me with that change, too. I was worried that the URL 
change meant a complete system change on Apple's part. :)

Original comment by kf6nvr on 29 Oct 2010 at 9:34

@GoogleCodeExporter
Copy link
Author

Thanks ferenc.vehmann, your fix works for me too.

Original comment by jonas.w...@gmail.com on 31 Oct 2010 at 12:45

@GoogleCodeExporter
Copy link
Author

Hi ferenc.vehmann,

Thanks for posting the fix.  I updated the trunk with the latest fix and added 
a new download file.

Apologies to all for the delay updating svn.

Thanks again,
-KIRBY

Original comment by kirbyt.w...@gmail.com on 31 Oct 2010 at 5:25

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant