Code Monkey home page Code Monkey logo

devices-details-to-csv's People

Watchers

 avatar  avatar

devices-details-to-csv's Issues

Events.js error

events.js:174
throw er; // Unhandled 'error' event
Error: self signed certificate in certificate chain
at TLSSocket.onConnectSecure (_tls_wrap.js:1058:34)
at TLSSocket.emit (events.js:198:13)
at TLSSocket._finishInit (_tls_wrap.js:636:8)
Emitted 'error' event at:
at TLSSocket.socketErrorListener (_http_client.js:392:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)

Any idea how to resolve this issue

HM 12.8.1.2

doesn´t work on HM 12.8.1.2.

node devices.js > test.csv
REQUEST QUERY: /xapi/v1/monitor/devices?ownerId=2&page=0
REQUEST HEADERS:{"X-AH-API-CLIENT-SECRET":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","X-AH-API-CLIENT-ID":"myid","X-AH-API-CLIENT-REDIRECT-URI":"https://127.0.0.1","Authorization":"Bearer mytokenxxxxx"}
REQUEST STATUS: 200
RESPONSE DATA: {"data":[{"deviceid":8589940160,
to here all works fine
REQUEST QUERY: /xapi/v1/monitor/devices/8589940032?ownerId=2
REQUEST HEADERS:{"X-AH-API-CLIENT-SECRET":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","X-AH-API-CLIENT-ID":"myid","X-AH-API-CLIENT-REDIRECT-URI":"https://127.0.0.1","Authorization":"Bearer mytokenxxxxxx"}
REQUEST STATUS: 500
RESPONSE DATA:

<title>500 Internal Server Error</title>

500 Internal Server Error


nginx

undefined:1

^ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at IncomingMessage. (C:\Users\sven\Documents\HMNG_tools\details\devices.js:155:29) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1055:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9)

please help thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.