Created
October 11, 2019 21:35
-
-
Save halcy/37a7976bf0bd3190faefa56852e03605 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mastodon.py debug: | |
Mastodon: Request to endpoint "http://localhost:3000/api/v1/push/subscription" using method "PUT". | |
Parameters: {'data[alerts][follow]': False, 'data[alerts][favourite]': False, 'data[alerts][reblog]': False, 'data[alerts][mention]': False} | |
Headers: {'Authorization': 'Bearer __MASTODON_PY_TEST_ACCESS_TOKEN'} | |
Files: {} | |
Mastodon: Response received with code 200. | |
response headers: {'Content-Encoding': 'gzip', 'X-Runtime': '0.029487', 'Content-Type': 'application/json; charset=utf-8', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-XSS-Protection': '1; mode=block', 'Vary': 'Accept-Encoding, Origin', 'X-Content-Type-Options': 'nosniff', 'X-Request-Id': 'ffb15570-ecf3-445e-b2cd-91d67bd5642c', 'Referrer-Policy': 'strict-origin-when-cross-origin', 'X-Frame-Options': 'SAMEORIGIN', 'Cache-Control': 'no-cache, no-store', 'X-Download-Options': 'noopen'} | |
Response text content: {"id":33,"endpoint":"https://example.com","alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="} | |
Mastodon debug: | |
23:31:49 web.1 | Started PUT "/api/v1/push/subscription" for 127.0.0.1 at 2019-10-11 23:31:49 +0200 | |
23:31:49 web.1 | Processing by Api::V1::Push::SubscriptionsController#update as */* | |
23:31:49 web.1 | Parameters: {"data"=>{"alerts"=>{"follow"=>"False", "favourite"=>"False", "reblog"=>"False", "mention"=>"False"}}} | |
23:31:49 web.1 | Doorkeeper::AccessToken Load (0.2ms) SELECT "oauth_access_tokens".* FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = $1 LIMIT $2 [["token", "__MASTODON_PY_TEST_ACCESS_TOKEN"], ["LIMIT", 1]] | |
23:31:49 web.1 | User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1234567890123456], ["LIMIT", 1]] | |
23:31:49 web.1 | CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1234567890123456], ["LIMIT", 1]] | |
23:31:49 web.1 | Web::PushSubscription Load (0.2ms) SELECT "web_push_subscriptions".* FROM "web_push_subscriptions" WHERE "web_push_subscriptions"."access_token_id" = $1 LIMIT $2 [["access_token_id", 1234567890123456], ["LIMIT", 1]] | |
23:31:49 web.1 | (0.1ms) BEGIN | |
23:31:49 web.1 | Web::PushSubscription Update (0.2ms) UPDATE "web_push_subscriptions" SET "data" = $1, "updated_at" = $2 WHERE "web_push_subscriptions"."id" = $3 [["data", "{\"alerts\":{\"follow\":\"False\",\"favourite\":\"False\",\"reblog\":\"False\",\"mention\":\"False\"}}"], ["updated_at", "2019-10-11 21:31:49.660166"], ["id", 33]] | |
23:31:49 web.1 | (6.8ms) COMMIT | |
23:31:49 web.1 | Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 7.8ms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment