Skip to content

Instantly share code, notes, and snippets.

View gosseti's full-sized avatar

Lawrence Gosset gosseti

View GitHub Profile
@gosseti
gosseti / nerves_hub.ex
Created August 14, 2025 13:01
NervesHub device config
# Error
# 401 Unauthorized when connecting to NervesHub
{:error, {:upgrade_failure, %{
reason: %Mint.WebSocket.UpgradeFailureError{status_code: 401, ...},
status_code: 401
}}}
# Configuration Files
@gosseti
gosseti / betterstack-sentry-issue.md
Created November 18, 2025 07:01
BetterStack Sentry Integration - 401 Unauthorized Issue

BetterStack Sentry Integration - 401 Unauthorized Issue

Issue Summary

We're getting HTTP 401 Unauthorized when the Elixir Sentry SDK attempts to send events to BetterStack's Sentry-compatible endpoint. The SDK successfully sends the events, but BetterStack rejects them with authentication errors.

Environment

  • Elixir: 1.17+
  • Sentry SDK: {:sentry, "~> 11.0.4"}