Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-17319

HTTP 400 (Bad request) error on multiple clicking webpush notifications Subscribe/Unsubscribe button

XMLWordPrintable

      When you start permanently mutli-clicking Subscribe/Unsubscribe button for webpush notifications in UCP, console got spammed by numerous errors like:

             POST https://area51.phpbb.com/phpBB/user/push/subscribe 400 (Bad Request)
      subscribeButtonHandler @ webpush.js?assets_version=2517:173
      webpush.js?assets_version=2517:207               
             POST https://area51.phpbb.com/phpBB/user/push/unsubscribe 400 (Bad Request)

      Server response on those errors is:

      {"message":"The submitted form was invalid. Try submitting again."}

      which apparently comes from \phpbb\ucp\controller\webpush.php function check_subscribe_requests().

            Unassigned Unassigned
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: