Skip to content

Unhelpful logs #71

@greg0ire

Description

@greg0ire

We get the following kind of logs once in a while: Request missing required field: code=400, events=[{"event_type":"[Experiment] Assignment","time":1764943694841,"insert_id":" 2292430750 20427","library":"amplitude-go/1.0.1","event_properties":{"08c4e909-cc12-443e-b794-a8

We suspect what's missing is the device ID (other logs tell us so.

It seems there is a logging issue though. It looks like we should receive Request missing field: <name of the field> here.

I believe it comes from this line

p.Options.Logger.Errorf("%s: code=%d, events=%s", result.Message, result.Code, eventsJSON)

Expected Behavior

we should receive Request missing field: <name of the field>

Current Behavior

Request missing field: <nothingness> code=400…

Possible Solution

Steps to Reproduce

Environment

  • SDK Version: analytics-go v1.0.1
  • Go Version: 1.25
  • OS Info: linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions