Skip to content

subscription failed for mobile interface. #43

@cubap

Description

@cubap

On /mobile.html selecting notifications sets them locally but the subscription fails.

fetch("https://hmcymrqnlsamrhrqmanz.supabase.co/rest/v1/push_subscriptions?endpoint=eq.https%3A%2F%2Fwns2-by3p.notify.windows.com%2Fw%2F%3Ftoken%3DBQYAAAB8CBSxymacbMuSVC7T0XMR9yxb7WcvwLFWnp1yLk2bHmm%252bMj8B25J%252bhaVzUfCFT6%252fthnKdmT304V2Sis1D9xOn1rj9lQPBgyFFjB%252bcxDLTG8kxKQLIshDTS04P6Al1cnL28et7hINpHDcMCkmOy0PJDBYYmu%252bqXfu7NvwXKRpxELMyLaLNUWvb7D70%252bLTPF9YS8XWVrBj%252bRZC4b2v2FPClyo%252ft%252f8gpZu9eWfZyd3ohTOKS%252b1F7As1ZhvNrbToCFEKj3IaULVI7XAVsnT1BpIPF%252fwDggzAMLoOh%252b%252bNFF8l0%252fXOWtkLdq5o8qNqgvUlpdiLyKuMOl4lpipjD%252fm5FgGBbsQ2TdkZiuSpUlv2GpLumSw%253d%253d", {
"headers": {
"accept": "/",
"accept-language": "en-US,en;q=0.9",
"apikey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhtY3ltcnFubHNhbXJocnFtYW56Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzMxNzcyODIsImV4cCI6MjA4ODc1MzI4Mn0.jzZ9CQ6ZwrpbCm7Qa6cfZpYm5wWni5_LTnAFWfiK_jw",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhtY3ltcnFubHNhbXJocnFtYW56Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzMxNzcyODIsImV4cCI6MjA4ODc1MzI4Mn0.jzZ9CQ6ZwrpbCm7Qa6cfZpYm5wWni5_LTnAFWfiK_jw",
"priority": "u=1, i",
"sec-ch-ua": ""Not:A-Brand";v="99", "Microsoft Edge";v="145", "Chromium";v="145"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": ""Windows"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
"Referer": "https://centerfordigitalhumanities.github.io/"
},
"body": null,
"method": "DELETE"
}); ;
fetch("https://hmcymrqnlsamrhrqmanz.supabase.co/rest/v1/push_subscriptions?endpoint=eq.https%3A%2F%2Fwns2-by3p.notify.windows.com%2Fw%2F%3Ftoken%3DBQYAAAB8CBSxymacbMuSVC7T0XMR9yxb7WcvwLFWnp1yLk2bHmm%252bMj8B25J%252bhaVzUfCFT6%252fthnKdmT304V2Sis1D9xOn1rj9lQPBgyFFjB%252bcxDLTG8kxKQLIshDTS04P6Al1cnL28et7hINpHDcMCkmOy0PJDBYYmu%252bqXfu7NvwXKRpxELMyLaLNUWvb7D70%252bLTPF9YS8XWVrBj%252bRZC4b2v2FPClyo%252ft%252f8gpZu9eWfZyd3ohTOKS%252b1F7As1ZhvNrbToCFEKj3IaULVI7XAVsnT1BpIPF%252fwDggzAMLoOh%252b%252bNFF8l0%252fXOWtkLdq5o8qNqgvUlpdiLyKuMOl4lpipjD%252fm5FgGBbsQ2TdkZiuSpUlv2GpLumSw%253d%253d", {
"headers": {
"accept": "/",
"accept-language": "en-US,en;q=0.9",
"priority": "u=1, i",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
"Referer": "https://centerfordigitalhumanities.github.io/"
},
"body": null,
"method": "OPTIONS"
}); ;
fetch("https://hmcymrqnlsamrhrqmanz.supabase.co/rest/v1/push_subscriptions", {
"headers": {
"accept": "/",
"accept-language": "en-US,en;q=0.9",
"apikey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhtY3ltcnFubHNhbXJocnFtYW56Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzMxNzcyODIsImV4cCI6MjA4ODc1MzI4Mn0.jzZ9CQ6ZwrpbCm7Qa6cfZpYm5wWni5_LTnAFWfiK_jw",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhtY3ltcnFubHNhbXJocnFtYW56Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzMxNzcyODIsImV4cCI6MjA4ODc1MzI4Mn0.jzZ9CQ6ZwrpbCm7Qa6cfZpYm5wWni5_LTnAFWfiK_jw",
"content-type": "application/json",
"prefer": "resolution=ignore-duplicates",
"priority": "u=1, i",
"sec-ch-ua": ""Not:A-Brand";v="99", "Microsoft Edge";v="145", "Chromium";v="145"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": ""Windows"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
"Referer": "https://centerfordigitalhumanities.github.io/"
},
"body": "{"endpoint":"https://wns2-by3p.notify.windows.com/w/?token=BQYAAAAhDb8Ts7D4xXyJ3zHgUmQj9fisiC7HODGRiU63R9miQD6ItXnmjX1j3nOSO6lak1gj5boPlTAAcPiX5Hlag8GG%2fViO3nAiyS%2bv9OFe6jlN9an05reKITVqx9XkmHRGxgy%2f%2fH2lD2rkaajhnCP7OpmLqAXUQwRzqch%2fyEky%2fDxOHcwAr5dUwLqay4r61UxXHUs%2brdU%2b6yyGqtdd6%2fXLPm4Kk%2f%2fp9M7axh9vqwSXNjPeIjXoArbA5PfAPCCmgdwPpGYcddPFfy0WswwXQ%2fZharU0JNVXwEDFxF2U1FM7PyiXIi1qRacosXMMo4sAaTZRYAK3hc26CNE8XyLwvNFH8dkMiVPhQL8BDl978f8Xbuc%2f1A%3d%3d\",\"p256dh\":\"BAq4rox4XMslxIrdhV7Hc5YbvQWUpi643V6HRbQZArQ3kRKFkEexn5EvTrBO8nV-HoBARE9SHPhPbs9t5g-JrQE\",\"auth\":\"5YDhbHsrPQupmR6mX-7Y9Q\"}",
"method": "POST"
}); ;
fetch("https://centerfordigitalhumanities.github.io/assets/favicon.svg", {
"headers": {
"accept": "image/avif,image/webp,image/apng,image/svg+xml,image/,/;q=0.8",
"accept-language": "en-US,en;q=0.9",
"priority": "u=2, i",
"sec-fetch-dest": "image",
"sec-fetch-mode": "no-cors",
"sec-fetch-site": "same-origin",
"Referer": "https://centerfordigitalhumanities.github.io/aviation-dashboard/mobile-sw.js"
},
"body": null,
"method": "GET"
}); ;
fetch("https://centerfordigitalhumanities.github.io/assets/favicon.svg", {
"headers": {
"accept": "image/avif,image/webp,image/apng,image/svg+xml,image/
,/;q=0.8",
"accept-language": "en-US,en;q=0.9",
"priority": "u=2, i",
"sec-fetch-dest": "image",
"sec-fetch-mode": "no-cors",
"sec-fetch-site": "same-origin",
"Referer": "https://centerfordigitalhumanities.github.io/aviation-dashboard/mobile-sw.js"
},
"body": null,
"method": "GET"
});

Response 401

{"code":"42501","details":null,"hint":null,"message":"new row violates row-level security policy for table "push_subscriptions""}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions