Closed rgaudin closed 7 years ago
Mage isn't used for sending DMs from RapidPro - for that we just use the Twython client. Maybe you need to check your TWITTER_ settings in RapidPro?
Whenever Mage is launched it has a look for messages it might have missed whilst it was down, but it shouldn't create any duplicates in the database because it can match the external_id field with Twitter's id for each message.
OK thanks, I though mage was used for ins and outs.
Figured from celery log that I forgot to switched back the SEND_MESSAGES
setting to True
.
I can now send outgoing DMs and as you said, it doesn't create duplicates.
Do you have any idea regarding this exception though? Should it be ignored?
Sorry really not sure about that exception. TembaManager.RequestProcess
is the thread that makes API calls from Mage to RapidPro (e.g. telling RapidPro to handle a DM put in the database by Mage). Maybe something to do with this https://java.net/jira/browse/JERSEY-2729?
Ah! So the issue mentioned a relation with SSL handshake. Since I'm testing in https with a self-signed certificate, I figured that could be the problem. After enabling regular http and setting the temba host to it, it works as expected without exception.
After setting up a Twitter Channel on rapidpro and starting mage, rapidpro gets to receive the incoming DMs and Follow requests but can't seem to reply through Twitter.
Rapidpro UI indicates the messages have been sent but it's not sent to Twitter. I also noticed the backlog of incoming messages is processed everytime I relaunch mage so it's not marked as processed or something.
mage outputs a
Temba API request failed with exception ProcessingException
which is not very clear so I've added the stacktrace which indicates the problem is anAlready connected
exception.I am using version (tag) 0.1.82