Skip to content

Code:6003 Message:Invalid request headers #9

@mateors

Description

@mateors

I get the following error when trying to

func cloudFlare() {
	ctx := context.TODO()
	zone := "theprimestyle.com."

	// configure the DNS provider (choose any from github.com/libdns)
	provider := cloudflare.Provider{APIToken: CLOUDFLARE_API_TOKEN}

	// list records
	listr, err := provider.GetRecords(ctx, zone)
	fmt.Println(err)
	if err == nil {
		for i, rec := range listr {
			fmt.Println(i, rec.ID, rec.Name, rec.Type, rec.Value, rec.TTL, rec.Priority)
		}
	}
}

got error status: HTTP 400: [{Code:6003 Message:Invalid request headers}]

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