Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Matrix (Synapse/Element)
  3. Setup SMS for phone number verification

Setup SMS for phone number verification

Scheduled Pinned Locked Moved Matrix (Synapse/Element)
1 Posts 1 Posters 382 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jfrereJ Offline
    jfrereJ Offline
    jfrere
    wrote on last edited by
    #1

    Hello,

    I'm trying to get this working with Twilio. I've added this to the homeserver.yaml file.

    sms:
      sms_gateway: twilio
      twilio:
        account_sid: "***********************************"
        auth_token: "***********************************"
        from_phone: "+************"
    msisdn:
      # Message template for the verification code sent by SMS
      body_template: "Your auth code is {token}."
      sms_gateway: twilio
    registration:
      enable_3pid_changes: true
    trusted_third_party_id_servers:
      - server_name: "matrix.org"
    account_threepid_delegates:
      msisdn: "https://matrix.org"
    

    But got this error

    Oct 17 19:49:57 - 2024-10-17 17:49:57,050 - synapse.rest.client.account - 419 - INFO - POST-11 - Request #1 to verify ownership of 41771111111
    Oct 17 19:49:57 - 2024-10-17 17:49:57,466 - synapse.http.client - 428 - INFO - POST-11 - Received response to POST https://matrix.org/_matrix/identity/api/v1/validate/msisdn/requestToken: 500
    Oct 17 19:49:57 - 2024-10-17 17:49:57,466 - synapse.handlers.identity - 460 - INFO - POST-11 - Proxied requestToken failed: HttpResponseException('500: Internal Server Error')
    Oct 17 19:49:57 - 2024-10-17 17:49:57,467 - synapse.http.server - 130 - INFO - POST-11 - <XForwardedForRequest at 0x7f44682b5b10 method='POST' uri='/_matrix/client/v3/account/3pid/msisdn/requestToken' clientproto='HTTP/1.1' site='8008'> SynapseError: 500 - Internal Server Error
    Oct 17 19:49:57 - 2024-10-17 17:49:57,467 - synapse.access.http.8008 - 473 - INFO - POST-11 - 82.197.186.105 - 8008 - {None} Processed request: 0.418sec/0.000sec (0.003sec, 0.000sec) (0.000sec/0.001sec/1) 55B 500 "POST /_matrix/client/v3/account/3pid/msisdn/requestToken HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Element/1.11.81 Chrome/128.0.6613.36 Electron/32.0.1 Safari/537.36" [0 dbevts]
    Oct 17 19:50:00 - 2024-10-17 17:50:00,045 - synapse.access.http.8008 - 473 - INFO - GET-12 - 172.18.0.1 - 8008 - {None} Processed request: 0.000sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 208B 302 "GET / HTTP/1.1" "Mozilla (CloudronHealth)" [0 dbevts]
    Oct 17 19:50:10 - 2024-10-17 17:50:10,042 - synapse.access.http.8008 - 473 - INFO - GET-13 - 172.18.0.1 - 8008 - {None} Processed request: 0.000sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 208B 302 "GET / HTTP/1.1" "Mozilla (CloudronHealth)" [0 dbevts]
    

    Any help would be appreciated

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Bookmarks
    • Search