howlongwillitlast14 / appdailysales

Automatically exported from code.google.com/p/appdailysales
0 stars 0 forks source link

Exception when searching for ViewState #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I run the script with my login info, unzipFile=false and verbose=False, this 
happens every time.

What is the expected output?

I expect it to download the most recent report.

What do you see instead?

Traceback (most recent call last):
  File "./fetch_sales_report.py", line 47, in main
    filename = appdailysales.downloadFile(options)
  File "/home/inaday/reports/appdailysales.py", line 290, in downloadFile
    raise ITCException, 'Unable to load the sales report web page at this time. A number of reasons can cause this including delayed reporting and unsigned contracts. Try again later or sign into iTunes Connect and verify access.'
ITCException: 'Unable to load the sales report web page at this time. A number 
of reasons can cause this including delayed reporting and unsigned contracts. 
Try again later or sign into iTunes Connect and verify access.'

What version of the product are you using? On what operating system?

appdailysales.py version 2.3 that I downloaded this morning. I'm running on 
Linux with a 2.6 kernel (Debian Lenny).

Please provide any additional information below.

I'm able to load the view in my browser just fine. I added a few lines to the 
script to output the html it was trying to parse looking for 
javax.faces.ViewState. I've attached that output. I know it looks like there 
are multiple html documents in the output and I have no idea why, but that is 
what the html variable on line 278 contained.

Thanks!

Original issue reported on code.google.com by speci...@gmail.com on 30 Sep 2010 at 3:55

Attachments:

GoogleCodeExporter commented 8 years ago
I have the same exception since yesterday. I've connected to itunesconnect and 
check that no contracts were pending.

Original comment by yann.bia...@gmail.com on 1 Oct 2010 at 8:04

GoogleCodeExporter commented 8 years ago
I do have the same problem since yesterday, also AppSales stops working for me, 
verbose mode for appdailysales.py

-- begin script --
Sales and Trends URL:  
https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wo/2.0.9.7.2.9.1.0.
0.3
Unable to load the sales report web page at this time. A number of reasons can 
cause this including delayed reporting and unsigned contracts. Try again later 
or sign into iTunes Connect and verify access.
Traceback (most recent call last):
  File "./appdailysales.py", line 408, in <module>
    sys.exit(main())
  File "./appdailysales.py", line 401, in main
    downloadFile(options)
  File "./appdailysales.py", line 279, in downloadFile
    viewState = match[0]
IndexError: list index out of range

Original comment by michal.f...@gmail.com on 1 Oct 2010 at 9:22

GoogleCodeExporter commented 8 years ago
I am experiencing the same issue. Navigating to /sales.faces in iTunes Connect 
manually works fine, but the script gets a page that says "We are currently 
experiencing some issues with the application.Please try connecting after 
sometime."

Original comment by jonas.w...@gmail.com on 1 Oct 2010 at 11:50

GoogleCodeExporter commented 8 years ago
Hi guys but it's not working for me too.

-- begin script --
Sales and Trends URL:  
https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wo/2.0.9.7.2.9.1.0.
0.3
Unable to load the sales report web page at this time. A number of reasons can 
cause this including delayed reporting and unsigned contracts. Try again later 
or sign into iTunes Connect and verify access.
Traceback (most recent call last):
  File "appdailysales.py", line 408, in <module>
    sys.exit(main())
  File "appdailysales.py", line 401, in main
    downloadFile(options)
  File "appdailysales.py", line 279, in downloadFile
    viewState = match[0]
IndexError: list index out of range

I'm using Python 2.5.2 on Debian GNU/Linux 5.0

Any ideas ?

Original comment by christop...@gmail.com on 1 Oct 2010 at 12:30

GoogleCodeExporter commented 8 years ago
Yep, something changed on the web site again. I'll do my best to get an update 
out as soon as possible, but I have a busy schedule for the next few days. 

-KIRBY

Original comment by kirbyt.w...@gmail.com on 1 Oct 2010 at 1:10

GoogleCodeExporter commented 8 years ago
Thanks, Kirby. Their changes to the reporting pages have only made getting and 
understanding our daily sales much harder, it's baffling. Thanks for making 
this script to help us all! 

Original comment by speci...@gmail.com on 1 Oct 2010 at 3:25

GoogleCodeExporter commented 8 years ago
I updated the script to work with the latest changes from Apple. The latest 
script is in svn.  I'm still testing and would appreciate if others can test it 
too to confirm it works.  Once I'm positive it works, I'll make the "official" 
release and post a .zip download file.

Thanks,
-KIRBY

Original comment by kirbyt.w...@gmail.com on 2 Oct 2010 at 1:12

GoogleCodeExporter commented 8 years ago
Hello Kirby, great that you have found time to adjust the script to latest 
Apple changes, it works great. Thank you!

Original comment by michal.f...@gmail.com on 2 Oct 2010 at 8:36

GoogleCodeExporter commented 8 years ago
@michal.frankowski Thanks for verifying the script is working again. 

I have a few more code clean up tasks to do before making the .zip download. 
I'll get this done soon.

Thanks again,
-KIRBY

Original comment by kirbyt.w...@gmail.com on 2 Oct 2010 at 9:18

GoogleCodeExporter commented 8 years ago
Hi All,

My son was nice enough to wake me up in the middle of the night, and since I 
couldn't go back to sleep, I decided to fix the script. Version 2.4 is now 
available in the download area.

Please get the latest and let me know if there are any new problems.  If there 
are no additional problems then I will close this issue within a few days.

Thanks,
-KIRBY

Original comment by kirbyt.w...@gmail.com on 2 Oct 2010 at 11:16

GoogleCodeExporter commented 8 years ago
Good Morning, Kirby,

r62 works great for me! Thank you so much.

Jonas

Original comment by jonas.w...@gmail.com on 2 Oct 2010 at 11:19

GoogleCodeExporter commented 8 years ago
Great to hear @jonas.witt. Thanks for letting me know.

Original comment by kirbyt.w...@gmail.com on 2 Oct 2010 at 11:24

GoogleCodeExporter commented 8 years ago
Hi Kirby,

2.4 works great!
Thank you for updating the script.

Original comment by ctwid...@gmail.com on 4 Oct 2010 at 5:31

GoogleCodeExporter commented 8 years ago
I'm having some other intermittent problems, but I think those are related to 
the site and not the script. I've successfully downloaded a days and it is 
working. Thanks for the help!

Kenny

Original comment by speci...@gmail.com on 4 Oct 2010 at 5:38

GoogleCodeExporter commented 8 years ago

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