question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An Invalid Signal API Source Phone No (65xxxxxxxx) was provided

See original GitHub issue

📣 Notification Service(s) Impacted Signal

🐞 Describe the bug When using an international number with fewer than 11 digits, the above warning is shown. Even though it is a warning, the Signal API URL is considered invalid and an error is thrown.

Fyi, I also tried the E164 format (with ‘+’ prefix) and got the same error. E.g. ‘+6598765432’ is valid according to this test site. Fyi, E164 is supported by signal-cli and twilio.

💡 Screenshots and Logs

mailrise@container:/$ apprise -vvvv -t 'title' signal://localhost:8080/659xxxxxxx/659xxxxxxx
2022-05-29 02:08:29,506 - TRACE - Signal API URL signal://localhost:8080/659xxxxxxx/659xxxxxxx unpacked as:
user="None"
password="None"
port="8080"
host="localhost"
fullpath="/659xxxxxxx/659xxxxxxx"
path="/659xxxxxxx/"
query="659xxxxxxx"
schema="signal"
url="signal://localhost:8080/659xxxxxxx/659xxxxxxx"
qsd="{}"
qsd+="{}"
qsd-="{}"
qsd:="{}"
secure="False"
verify="True"
targets="['659xxxxxxx']"
apikey="localhost"
source="659xxxxxxx"
batch="False"
status="False"
2022-05-29 02:08:29,507 - WARNING - An invalid Signal API Source Phone No (659xxxxxxx) was provided.
2022-05-29 02:08:29,508 - ERROR - Could not load Signal API URL: signal://localhost:8080/659xxxxxxx/659xxxxxxx
2022-05-29 02:08:29,508 - ERROR - You must specify at least one server URL or populated configuration file.
Usage:  [OPTIONS] SERVER_URL [SERVER_URL2 [SERVER_URL3]]

  Send a notification to all of the specified servers identified by their
  URLs the content provided within the title, body and notification-type.
<snip>

💻 Your System Details: docker: yoryan/mailrise:v1.2.1 (apprise>=0.9.5)

🔮 Additional context One potential fix is to set min_len to 10 or lower in utils.py. Alternatively, consider using python-phonenumbers.

According to this line in the forked libsignal-service-java used by signal-cli, phone numbers can range from 7 to 15 digits.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
leonghuicommented, May 29, 2022

Thanks for the prompt response. As a quick workaround, I mounted a patched utils.py (min_len = 10) in my docker compose file (for Mailrise).

  mailrise:
    container_name: mailrise
    image: yoryan/mailrise:latest
    volumes:
      - ./mailrise.conf:/etc/mailrise.conf:ro
      - ./utils.py:/home/mailrise/.local/lib/python3.10/site-packages/apprise/utils.py
    ports:
      - "8025:8025"
0reactions
caronccommented, May 30, 2022

Closing ticket off as code has been merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

Captcha error while registering a number #89 - GitHub
On registering a phone number with signal, we are getting following error {"error":"Captcha invalid or required for verification (null)\n"}.
Read more >
Support: WinTV v10 Release Notes - Hauppauge
WinTV v10.0.38259. Fixed an issue EPG wouldn't update if there was Analog channel in the list, but no Analog Source available; Disables Hardware...
Read more >
API Docs - Signal Sciences Help Center - Fastly Documentation
{"message":"Invalid displayName - must be between 3 and 100 characters."} Get corp overview report. get /corps/{corpName}/reports/attacks. Request.
Read more >
Changing Cisco IOS BGP Policies Based on IP SLA ...
Although it is not documented, I was curious to test if object tracking may be used inside a BGP route-map. This would provide...
Read more >
Siebel Analytics Message Reference - Oracle Help Center
The Siebel Analytics software provides informational and error messages for ... The communication failure is likely caused by incorrect Siebel ODBC DSN.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found