yasoob / practical-python-projects

99 stars 42 forks source link

Invoice Generator - app_test.py - [Errno 61] #28

Closed JRD8 closed 2 years ago

JRD8 commented 3 years ago

Location Within the Book

Hint: Page numbers change all the time. The best way to report an issue is by chapter and section numbers.

Description

Cheers and love this book so far. Have been working through the Invoice Generator project, no problem, At last step, running app.py works fine and can verify in browser. However, once creating and running app_test.py, there's some sort of new connection problem "Failed to establish a new connection: [Errno 61] Connection refused')" and won't generate the PDF invoice. I have also attached screenshot of terminal error report.

Have checked app_test.py code and is identical to you code same in book.

Wondering if there's a solution to this?

If code-related, enter it within these backticks. Otherwise, delete this segment.

Possible Solutions

Have Googled this error and appears that it could be firewall related. However, app.py is running fine through the firewall, while app_test.py does not. Please let me know thoughts. Thanks. - JRD

Screen Shot 2021-03-28 at 3 13 04 PM

Your full name so I can provide accurate credit within the book James Diener

yasoob commented 3 years ago

Hi @JRD8,

Can you show me the code of your app_test.py file?

JRD8 commented 3 years ago

Certainly. Apologies in advance if any typos - although I don’t believe so.

On Mar 29, 2021, at 4:32 PM, M.Yasoob Ullah Khalid ☺ @.***> wrote:

Hi @JRD8 https://github.com/JRD8,

Can you show me the code of your app_test.py file?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yasoob/practical-python-projects/issues/28#issuecomment-809692056, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABENU5M6VRU2D35HM4HDCI3TGDPUZANCNFSM4Z6KWZOA.