You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is raising TypeError exceptions. Check if including host in $current_url fixes it!
Add dashboards breaking down by network and $host
Host
TRPC requests can originate from the API or Web
The host is set always as if the request came from the API after the change introduced in commit 79f9151. Instead, we should try to set the host when the trpc context is created
Distinct ID for API requests
We don't require any API key so the only way so far is generating an UUID directly from the IP. We can use something like:
import { v5 as uuidv5 } from 'uuid';
import crypto from 'crypto';
const NAMESPACE = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; // UUID namespace
function generateUUIDFromIP(ip: string): string {
const hash = crypto.createHash('sha256').update(ip).digest('hex');
const uuid = uuidv5(hash, NAMESPACE);
return uuid;
}
// Example usage
const ip = '192.168.1.1';
const uniqueUUID = generateUUIDFromIP(ip);
console.log(uniqueUUID);
The text was updated successfully, but these errors were encountered:
PostHog
frontenddistinctId
error #609Posthog:
Host
TRPC requests can originate from the API or Web
The host is set always as if the request came from the API after the change introduced in commit 79f9151. Instead, we should try to set the host when the trpc context is created
Distinct ID for API requests
We don't require any API key so the only way so far is generating an UUID directly from the IP. We can use something like:
The text was updated successfully, but these errors were encountered: