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

Missing WEB API Key instructions #7

Open
kernelp4nic opened this issue Apr 25, 2024 · 0 comments
Open

Missing WEB API Key instructions #7

kernelp4nic opened this issue Apr 25, 2024 · 0 comments

Comments

@kernelp4nic
Copy link

Hi! Thanks for your work! I wasn't able to register the plugin, with the following error:

2024-04-25 12:55:56,010 - galaxy.api.jsonrpc - INFO - Handling request: id=9, method=pass_login_credentials, params={'cookies': '****', 'credentials': '****', 'step': ''}
2024-04-25 12:55:56,056 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): steamcommunity.com:443
2024-04-25 12:55:56,592 - urllib3.connectionpool - DEBUG - https://steamcommunity.com:443 "GET /dev/apikey HTTP/1.1" 200 7201
2024-04-25 12:55:56,627 - galaxy.api.jsonrpc - ERROR - Unexpected exception raised in plugin handler
Traceback (most recent call last):
  File "/Users/kernelp4nic/Library/Application Support/GOG.com/Galaxy/plugins/installed/galaxy-integration-steam-0.1.0/galaxy/api/jsonrpc.py", line 283, in handle
    result = await callback(*bound_args.args, **bound_args.kwargs)
  File "/Users/kernelp4nic/Library/Application Support/GOG.com/Galaxy/plugins/installed/galaxy-integration-steam-0.1.0/galaxy/api/plugin.py", line 252, in method
    result = await handler_(*args, **kwargs)
  File "/Users/kernelp4nic/Library/Application Support/GOG.com/Galaxy/plugins/installed/galaxy-integration-steam-0.1.0/galaxy/api/plugin.py", line 264, in wrapper
    return await self._external_task_manager.create_task(handler(*args, **kwargs), name, False)
  File "/Users/kernelp4nic/Library/Application Support/GOG.com/Galaxy/plugins/installed/galaxy-integration-steam-0.1.0/galaxy/task_manager.py", line 21, in task_wrapper
    result = await coro
  File "/Users/kernelp4nic/Library/Application Support/GOG.com/Galaxy/plugins/installed/galaxy-integration-steam-0.1.0/plugin.py", line 40, in pass_login_credentials
    return authentication.get_steamid_and_web_api_key(self, cookies)
  File "/Users/kernelp4nic/Library/Application Support/GOG.com/Galaxy/plugins/installed/galaxy-integration-steam-0.1.0/authentication.py", line 51, in get_steamid_and_web_api_key
    form_action = api_form_soup.find("form", id="editForm").get("action")
AttributeError: 'NoneType' object has no attribute 'get'

The problem was that I need to create the Steam WEB API key before connecting the plugin, after that everything worked as expected:

CleanShot 2024-04-25 at 13 02 17

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

1 participant