Skip to content

Requests blocked by WAF due to User-Agent #7

Closed as not planned
Closed as not planned
@theautonomousdev

Description

@theautonomousdev

By default requests are blocked by the WAF due to User-Agent header with the response:

{
	"error": {
		"message": "\"please identify yourself with a properly formatted user-agent containing application name, version and contact information. thank you!\"",
		"status_code": 403,
		"waf_code": 13799
	}
}

Overriding the baseOptions on the configuration to add a custom User-Agent resolves the issue:

const configuration = new vrchat.Configuration({
  username,
  password,
  baseOptions: {
    headers: { "User-Agent": "Test" },
  },
});

Are you able to add a custom User-Agent by default or update the example code to include a custom User-Agent so it's clear that it's required?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions