View Issue Details

IDProjectCategoryView StatusLast Update
0006507Talertaler-merchant-demospublic2021-08-24 14:23
ReporterChristian Grothoff Assigned ToChristian Grothoff Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Versiongit (master) 
Target Version0.8Fixed in Version0.8 
Summary0006507: taler-merchant-demos crash without port
DescriptionThere should be a good default port if none is configured, and also in general never a stack trace generated and instead only a proper English error message being shown. (A debug flag should be used to show the stack trace.) Right now, without [blog] port I get:

$ taler-merchant-demos --serve-http blog
WARNING:taler.util.talerconfig:no base directory found
WARNING:taler.util.talerconfig:Configuration ** is missing option 'HTTP_PORT' in section 'BLOG'
Traceback (most recent call last):
  File "/home/grothoff/.local/bin/taler-merchant-demos", line 98, in <module>
    demos()
  File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/grothoff/.local/bin/taler-merchant-demos", line 94, in demos
    handle_serve_http(config_obj, which_shop, port)
  File "/home/grothoff/.local/bin/taler-merchant-demos", line 72, in handle_serve_http
    spec = ":%d" % (port,)
TypeError: %d format: a number is required, not NoneType
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2020-08-23 10:21

manager   ~0016714

48aad32..78e7715 should fix this issue.

Issue History

Date ModifiedUsernameFieldChange
2020-08-22 20:00Christian GrothoffNew Issue
2020-08-23 10:21Christian GrothoffNote Added: 0016714
2020-08-23 10:21Christian GrothoffAssigned To => Christian Grothoff
2020-08-23 10:21Christian GrothoffStatusnew => informing
2020-08-23 10:21Christian GrothoffResolutionopen => fixed
2020-08-23 10:21Christian GrothoffFixed in Version => 0.8
2021-08-24 14:23Christian GrothoffStatusinforming => closed
2026-08-23 14:16Florian DoldCategoryMerchant frontends (Python3) => taler-merchant-demos