Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There was an issue fetching that device. Make sure your account is linked and the ID is correct. #170

Open
reesion opened this issue Jun 6, 2024 · 0 comments

Comments

@reesion
Copy link

reesion commented Jun 6, 2024

Hi,

I am having issue querying my devices. It used to work.
<
$ DEBUG=* tuya-cli wizard
? Do you want to use these saved API credentials? x Yes
? Provide a 'virtual ID' of a device currently registered in the app: x
follow-redirects options {
maxRedirects: 21,
maxBodyLength: 10485760,
protocol: 'https:',
path: '/v1.0/token?grant_type=1',
method: 'GET',
headers: {
Accept: 'application/json, text/plain, /',
t: '1717633586183',
sign: 'DF90F9FD06412766CD2C956D63071755FFC696968E0BA29E7D165479AD37D36E',
client_id: '443prjfwazkef6qjvmrk',
sign_method: 'HMAC-SHA256',
access_token: '',
Dev_lang: 'Nodejs',
Dev_channel: 'SaaSFramework',
'Signature-Headers': '',
'User-Agent': 'axios/0.21.4'
},
agent: undefined,
agents: { http: undefined, https: undefined },
auth: undefined,
hostname: 'openapi.tuyaeu.com',
port: null,
nativeProtocols: {
'http:': {
_connectionListener: [Function: connectionListener],
METHODS: [Array],
STATUS_CODES: [Object],
Agent: [Function],
ClientRequest: [Function: ClientRequest],
IncomingMessage: [Function: IncomingMessage],
OutgoingMessage: [Function: OutgoingMessage],
Server: [Function: Server],
ServerResponse: [Function: ServerResponse],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request],
maxHeaderSize: [Getter],
globalAgent: [Getter/Setter]
},
'https:': {
Agent: [Function: Agent],
globalAgent: [Agent],
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
}
}
} +0ms
[
Error: getaddrinfo EAI_AGAIN openapi.tuyaeu.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26) {
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'openapi.tuyaeu.com',
config: {
url: 'https://openapi.tuyaeu.com/v1.0/token?grant_type=1',
method: 'get',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
transitional: [Object],
data: undefined
},
request: Writable {
_writableState: [WritableState],
writable: true,
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_onNativeResponse: [Function],
_currentRequest: [ClientRequest],
_currentUrl: 'https://openapi.tuyaeu.com/v1.0/token?grant_type=1',
[Symbol(kCapture)]: false
},
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON]
}
]
There was an issue fetching that device. Make sure your account is linked and the ID is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant