Kinto / Kinto/kinto-wizard

Low level issue if no server nor auth is passed

Open
#67 2 comments 0 reactions 0 assignees View on GitHub
easy-pick enhancement stale
Dominant language
Python
Stars
9
Forks
3
PR merge metrics
No merged PRs in 30d

Description

```
$ kinto-wizard load /tmp/test.yaml
Traceback (most recent call last):
File "/home/mathieu/Code/Mozilla/kinto-wizard/.venv/bin/kinto-wizard", line 11, in
load_entry_point('kinto-wizard', 'console_scripts', 'kinto-wizard')()
File "/home/mathieu/Code/Mozilla/kinto-wizard/kinto_wizard/__main__.py", line 60, in main
client = cli_utils.create_client_from_args(args)
File "/home/mathieu/Code/Mozilla/kinto-wizard/.venv/local/lib/python3.6/site-packages/kinto_http/cli_utils.py", line 28, in create_client_from_args
ignore_batch_4xx=args.ignore_batch_4xx)
File "/home/mathieu/Code/Mozilla/kinto-wizard/.venv/local/lib/python3.6/site-packages/kinto_http/__init__.py", line 75, in __init__
self.session = create_session(**session_kwargs)
File "/home/mathieu/Code/Mozilla/kinto-wizard/.venv/local/lib/python3.6/site-packages/kinto_http/session.py", line 40, in create_session
raise AttributeError(msg)
AttributeError: You need to either set session or auth + server_url

```

Contributor guide

Open the contributing guide

Research direction

Reproduce `kinto-wizard load /tmp/test.yaml` without server or auth, then inspect `kinto_wizard/__main__.py` around `main()` and the `create_client_from_args` call shown in the traceback. The issue does not define the intended user-facing behavior; clarify that first, then ensure the missing configuration no longer surfaces only as the low-level `AttributeError`.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.