-
Notifications
You must be signed in to change notification settings - Fork 30
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
Looks like the examples are not doing anything at all #3
Comments
Hi, thank you for your report. I was able to reproduce the issue with version
I have to investigate what's up with that and probably reach out to signal-cli-rest-api or signal-cli directly. You mentioned that everything worked as expected with I tried Signal Chat
API:
Bot:
|
I will improve the on-boarding eventually. This is indeed an important detail to mention haha |
Hi! With increased logging and version With version I only tested if i see messages incoming with |
This is very odd. I checked signal-cli-rest-api and found bbernhard/signal-cli-rest-api#224 which solved my issue in 0.57 so let's use this version from now on so we are on the same page. I also added more information on how to link and start the bot but you went through those steps already. It would be good if you check it nevertheless. I couldn't reproduce your issues since 0.56 wasn't working at all for me and 0.53 worked without problems. Could you check the following things and post the logs?
If both receiving and sending works, it means that there must be an issue with receiving or sending on the bot's side.
|
OK! I am on 0.57 now:
linked.
Please see above.
Yes. I even receive them with your example code:
100% confirmed. Works since day 1. Tested again right now. Works.
Nothing ever happens. I tried all of them. All are shown on stdout with logging set to INFO. But no reply is ever sent. See output above (ping).
No. There is no send logged to the server unless i send a message via curl. |
I found the issue. Here is more context:
Interesting. Could be related but it looks like the bot is picking up the raw messages, see below. I remember having problems running two API servers/signal-cli processes at the same time though.
This means, the bot is receiving messages because we see the raw message in the logs. However, we don't see any consumer picking up the message. That implies, there is an issue in "listening" to messages for that group. |
Check out the new Readme and let me know if you have feedback. |
hi! thank you. i changed I looked at the new README. This part:
i think the clearest part to get the info we need is by executing something like:
and then just describing that the key |
No, its the other way round! I am still convinced that this is the issue in your case but I am a bit out of ideas. Are you sure that your ids end with a {
"name": "Examplebot 127.0.0.1",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/example/bot.py",
"console": "integratedTerminal",
"env": {
"PYTHONPATH": "/path/to/the/signalbot/example",
"SIGNAL_SERVICE": "127.0.0.1:8080",
"PHONE_NUMBER": "+49123456789",
"GROUP_ID": "asdfadfadsfasdfasdfasdfasdfasdf=",
"GROUP_SECRET": "group.qwerqwerqwerqwerqewrqwerqerqwerqwerqerqerqwerqwer="
}
}, self.groups should look like this in your debugger
We need the If you don't run into
Okay, I will think about making it clearer. |
ok.
i understood from your post earlier:
|
🤦🏻♂️ you are right. I will change the names to SIGNAL_SERVICE=bla.foo.net:8091 PHONE_NUMBER="+40123456789" GROUP_ID="group.blV5OVZkUjBqSWlxT02304234kladjfklaejrT0=" GROUP_SECRET="dasfasdfawefadfaseGOlDY=" python3 bot.py must be SIGNAL_SERVICE=bla.foo.net:8091 PHONE_NUMBER="+40123456789" GROUP_SECRET="group.blV5OVZkUjBqSWlxT02304234kladjfklaejrT0=" GROUP_ID="dasfasdfawefadfaseGOlDY=" python3 bot.py but this is what you tried out. In |
I created #8 to make |
hi! thank you very much for your effort! i think it has to do with my setup. but i dont have the time to look into this in more detail at the moment. i will look into it again whenever i get there. |
Hi!
I seem to be unable to even get your examples to work.
I am running this version of the api container:
Took me a while to find out i have to use json-rpc to get this working at all.
But now - just simply - running your example
bot.py
nothing ever happens no matter what i send to the group in question.I changed all private information in that in-/outputs.
Everything works as expected when testing with
wscat
.Thanks in advance.
The text was updated successfully, but these errors were encountered: