-
Bug
-
Resolution: Done
-
Minor
-
2.7.1, 2.8 GA, SaaS, 2.9.1 GA
-
False
-
False
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
No
-
Undefined
-
-
When importing a Swagger/OAS Spec to 3scale, if the option 'staging-public-base-url' is specified but not 'production-public-base-url', there is a misleading error about "endpoints":
...
===== MESSAGE:
KeyError: key not found: "endpoint"
===== BACKTRACE:
/opt/toolbox/lib/3scale_toolbox/commands/import_command/openapi/create_activedocs_step.rb:56:in `fetch'
/opt/toolbox/lib/3scale_toolbox/commands/import_command/openapi/create_activedocs_step.rb:56:in `block in rewritten_openapi'
/opt/toolbox/lib/3scale_toolbox/commands/import_command/openapi/create_activedocs_step.rb:54:in `tap'
/opt/toolbox/lib/3scale_toolbox/commands/import_command/openapi/create_activedocs_step.rb:54:in `rewritten_openapi'
/opt/toolbox/lib/3scale_toolbox/commands/import_command/openapi/create_activedocs_step.rb:13:in `call'
/opt/toolbox/lib/3scale_toolbox/commands/import_command/openapi.rb:59:in `each'
/opt/toolbox/lib/3scale_toolbox/commands/import_command/openapi.rb:59:in `run'
/opt/toolbox/vendor/bundle/ruby/2.5.0/gems/cri-2.15.9/lib/cri/command_runner.rb:34:in `call'
/opt/toolbox/vendor/bundle/ruby/2.5.0/gems/cri-2.15.9/lib/cri/command_dsl.rb:303:in `block in runner'
/opt/toolbox/vendor/bundle/ruby/2.5.0/gems/cri-2.15.9/lib/cri/command.rb:360:in `run_this'
/opt/toolbox/vendor/bundle/ruby/2.5.0/gems/cri-2.15.9/lib/cri/command.rb:296:in `run'
/opt/toolbox/vendor/bundle/ruby/2.5.0/gems/cri-2.15.9/lib/cri/command.rb:314:in `run'
/opt/toolbox/vendor/bundle/ruby/2.5.0/gems/cri-2.15.9/lib/cri/command.rb:314:in `run'
/opt/toolbox/lib/3scale_toolbox/cli.rb:43:in `block in run'
/opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:5:in `block in error_watchdog'
/opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:11:in `error_watchdog'
/opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:5:in `error_watchdog'
/opt/toolbox/lib/3scale_toolbox/cli.rb:40:in `run'
/opt/toolbox/exe/3scale:15:in `<top (required)>'
/opt/toolbox/bin/3scale:29:in `load'
/opt/toolbox/bin/3scale:29:in `<main>'
Traceback (most recent call last):
10: from /opt/toolbox/bin/3scale:29:in `<main>'
9: from /opt/toolbox/bin/3scale:29:in `load'
8: from /opt/toolbox/exe/3scale:15:in `<top (required)>'
7: from /opt/toolbox/lib/3scale_toolbox/cli.rb:40:in `run'
6: from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:5:in `error_watchdog'
5: from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:9:in `error_watchdog'
4: from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:13:in `rescue in error_watchdog'
3: from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:26:in `handle_error'
2: from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:42:in `print_error'
1: from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:42:in `open'
/opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:42:in `initialize': Permission denied @ rb_sysopen - crash.log (Errno::EACCES)
Support has thought about a few solutions for this issue:
- Set the Production URL to come from the spec (preferred solution).
- Use the same as Staging.
- Print an error stating that both are required.