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

Keeps reporting "Websocket Error" #4

Open
Misaka-0x447f opened this issue May 25, 2024 · 1 comment
Open

Keeps reporting "Websocket Error" #4

Misaka-0x447f opened this issue May 25, 2024 · 1 comment

Comments

@Misaka-0x447f
Copy link

I tried to build a docker and run it on azure but it keeps reporting same error.
Same on my own machine.

Error log

2024-05-25 11:26:50,590 WARNING Websocket Error: scheme https is invalid
2024-05-25 11:26:50,591 INFO scheme https is invalid - reconnect

and keeps printing same thing.

Filesystem

root@3f6d8af29414:/app# ls
Dockerfile  LICENSE  README.md  config.json  config.sample.json  main.log  main.py  requirements.txt

Config

{
  "tg_bot_token": "1005******:AA********************************k",
  "channel_chat_id": -100198*******,
  "pm_chat_id": 143******,
  "mastodon_host": "mastodon.online",
  "mastodon_api_access_token": "fb8i98sRSyF********************************",
  "mastodon_app_name": "Mastodon2TG",
  "mastodon_username": "Misaka_0x447f",
  "scope": ["public", "unlisted"],
  "add_link_in_telegram": true,
  "add_link_in_mastodon": true
}
@littlebear0729
Copy link
Owner

Sorry for late reply, I'm no longer using this project so I cannot ensure you my code is still working for you.
But I can offer you some idea to debug.

The error may occur at:

requests.post(f"https://{mastodon_host}/api/v1/statuses", headers=header, data=data)

You may try check the API document of your Mastodon instance and change the URL?

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