Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Default timeout not functional #60

@Cherry

Description

@Cherry

Looking at

timeout: opts.timeout || 1e4,
seems to imply the default timeout for this library is 10 seconds.

However, during times of API outages such as https://www.cloudflarestatus.com/incidents/g7nd3k80rxdb, requests seem to just hang forever, and never timeout.

Code to replicate:

const cloudflare = require('cloudflare')({
	"email": "xxx",
	"key": "xxxxx"
});

cloudflare.dns.add('xxxxxx', {
	content: '1.2.3.4',
	name: '_test.xxxx.xx',
	type: 'A',
	proxied: false
}, (err, results) => {
	// this callback never fires with an error or success - the timeout never occurs and it just waits infinitely
	console.log(err, results);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions