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. #178

Open
DreherAdam opened this issue Sep 26, 2024 · 0 comments
Open

There was an issue fetching that device. #178

DreherAdam opened this issue Sep 26, 2024 · 0 comments

Comments

@DreherAdam
Copy link

┌──(kali㉿kali)-[~/Desktop]
└─$ DEBUG=* tuya-cli wizard
? Do you want to use these saved API credentials? ******* Yes
? Provide a 'virtual ID' of a device currently registered in the app: ********
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: '1727368373399',
sign: 'F8DBAC96452CCBA463E632B7A5F1052A8B467B042E57BF0C4603101A5DA54DD1',
client_id: '*********',
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.tuyaus.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],
validateHeaderName: [Function],
validateHeaderValue: [Function],
get: [Function: get],
request: [Function: request],
setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
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.tuyaus.com
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'openapi.tuyaus.com',
config: {
url: 'https://openapi.tuyaus.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 {
_events: [Object],
_writableState: [WritableState],
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_eventsCount: 2,
_onNativeResponse: [Function (anonymous)],
_currentRequest: [ClientRequest],
_currentUrl: 'https://openapi.tuyaus.com/v1.0/token?grant_type=1',
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
},
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON]
}
]

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