Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key Error trying to get configuration #3

Closed
antonioag95 opened this issue Apr 3, 2021 · 3 comments
Closed

Key Error trying to get configuration #3

antonioag95 opened this issue Apr 3, 2021 · 3 comments

Comments

@antonioag95
Copy link
Contributor

Hello, thank you for your quick update about adding custom peer names!
I get a KeyError while trying to fetch configuration for my wg0 plus the homepage does not show all data I can see in your screenshots!
That's the error I can see:

[2021-04-03 10:21:58,655] ERROR in app: Exception on /get_config/wg0 [GET]
Traceback (most recent call last):
  File "/home/antonio/.local/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/antonio/.local/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/antonio/.local/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/antonio/.local/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/antonio/.local/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/antonio/.local/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "dashboard.py", line 210, in get_conf
    "peer_data":get_conf_peers_data(config_name),
  File "dashboard.py", line 122, in get_conf_peers_data
    peer_data[data_usage[count]]['allowed_ip'] = data_usage[count+1]
KeyError: '192.168.9.0/24'

I know it must be an error with my configuration file, if possible I would like to help, maybe we can talk on another platform instead of using GitHub, let me know and thank you again!

@donaldzou
Copy link
Owner

Hi, do you have discord?

@antonioag95
Copy link
Contributor Author

Thank you for your answer. I do, how can I get in touch with you there?

@donaldzou
Copy link
Owner

donaldzou commented Apr 3, 2021

Hi, you can search my account as The Manager#8971

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants