GithubHelp home page GithubHelp logo

p1-meter-exporter's Introduction

P1 Meter exporter

HomeWizard P1 Meter exporter.

Note When errors occur, the data that caused the error is submitted to Rollbar to reproduce and fix the error.

Usage

docker-compose

version: '3.0'
services:
  p1-meter-exporter:
    image: ghcr.io/vidavidorra/p1-meter-exporter:latest
    container_name: p1-meter-exporter
    environment:
      - METER_API_URL=http://192.168.1.10/api
      - INFLUXDB_URL=http://192.168.1.2:8086
      - 'INFLUXDB_TOKEN=RUHDbp7UGt7I6Q+abdG7QVtrcdOPtHJlGDugMNxFUSY='
      - INFLUXDB_ORGANISATION=my-org
      - INFLUXDB_BUCKET=p1-meter
      - LOG_LEVEL=trace # optional
    restart: unless-stopped

Parameters

The Docker container image is configured using environment envirables passed at runtime.

parameter description
METER_API_URL URL to the HomeWizard P1 meter API
INFLUXDB_URL URL to Influx DB
INFLUXDB_TOKEN Influx DB token with write permissions to the bucket
INFLUXDB_ORGANISATION Influx DB organisation name or ID
INFLUXDB_BUCKET name or ID of the Influx DB bucket to write the data to
LOG_LEVEL optional specify log level, can be one of trace, debug, info, warn, error, fatal

Unraid

On Unraid the Docker container image can be used using the pre-defined template. Open a terminal or SSH to the server and execute the following command to download the template in the user template section. This template can then be used when adding a container.

curl https://raw.githubusercontent.com/vidavidorra/p1-meter-exporter/main/static/unraid.xml -o /boot/config/plugins/dockerMan/templates-user/p1-meter-exporter.xml

Security policy

Please refer to the Security Policy on GitHub for the security policy.

License

This project is licensed under the GPLv3 license.

Copyright Β© 2023 Jeroen de Bruijn

License details.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

The full text of the license is available in the LICENSE file in this repository and online.

p1-meter-exporter's People

Contributors

jdbruijn avatar renovate[bot] avatar vidavidorra-release[bot] avatar

Watchers

 avatar  avatar

p1-meter-exporter's Issues

TypeError: Cannot read properties of undefined (reading 'startsWith')

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/25/


TypeError: Cannot read properties of undefined (reading 'startsWith')
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@vidavidorra/bunyan-pretty-stream/dist/helpers/normalise-path.js", line 4, in normalisePath
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@vidavidorra/bunyan-pretty-stream/dist/formatter/formatter.js", line 82, in Formatter.formatSource
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@vidavidorra/bunyan-pretty-stream/dist/formatter/formatter.js", line 46, in Formatter.format
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@vidavidorra/bunyan-pretty-stream/dist/bunyan-pretty-stream.js", line 19, in PrettyStream._transform
  File "node:internal/streams/transform", line 175, in PrettyStream.Transform._write
  File "node:internal/streams/writable", line 399, in writeOrBuffer
  File "node:internal/streams/writable", line 340, in _write
  File "node:internal/streams/writable", line 344, in PrettyStream.Writable.write
  File "/Users/jdbruijn/projects/p1-meter-exporter/node_modules/bunyan/lib/bunyan.js", line 923, in Logger._emit
                s.stream.write(s.raw ? rec : str);
  File "/Users/jdbruijn/projects/p1-meter-exporter/node_modules/bunyan/lib/bunyan.js", line 1045, in Logger.info
                str = this._emit(rec);

RequestTimedOutError: Write to InfluxDB failed (attempt: 1).

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/32/


RequestTimedOutError: Request timed out
  File "/app/node_modules/@influxdata/influxdb-client/src/impl/node/NodeHttpTransport.ts", line 430, in ClientRequest.<anonymous>
  File "node:events", line 511, in ClientRequest.emit
  File "node:_http_client", line 840, in Socket.emitRequestTimeout
  File "node:events", line 625, in Object.onceWrapper
  File "node:events", line 523, in Socket.emit
  File "node:net", line 582, in Socket._onTimeout
  File "node:internal/timers", line 573, in listOnTimeout
  File "node:internal/timers", line 514, in process.processTimers

The automated release is failing 🚨

🚨 The automated release from the main branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the main branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Docker authentication failed

Both ENV vars DOCKER_REGISTRY_USER and DOCKER_REGISTRY_PASSWORD must be set


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/29/


TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.
  File "/app/src/p1-meter/api.ts", line 49, in P1Meter.request
  File "node:internal/process/task_queues", line 95, in process.processTicksAndRejections
  File "/app/src/p1-meter/api.ts", line 41, in P1Meter.telegram
  File "/app/src/exporter/power-status.ts", line 16, in PowerStatus.export

HttpError: Write to InfluxDB failed.

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/18/


HttpError: failure writing points to database: partial write: field type conflict: input field "tariff" on measurement "measurement" is type string, already exists as type integer dropped=60
  File "/app/node_modules/@influxdata/influxdb-client/src/impl/node/NodeHttpTransport.ts", line 354, in IncomingMessage.<anonymous>
  File "node:events", line 523, in IncomingMessage.emit
  File "node:internal/streams/readable", line 1367, in endReadableNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

HttpError: unauthorized access

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/6/


HttpError: unauthorized access
  File "/app/node_modules/@influxdata/influxdb-client/src/impl/node/NodeHttpTransport.ts", line 354, in IncomingMessage.<anonymous>
  File "node:events", line 524, in IncomingMessage.emit
  File "node:internal/streams/readable", line 1359, in endReadableNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

Error: connect EHOSTUNREACH 192.168.0.10:80

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/28/


Error: connect EHOSTUNREACH 192.168.0.10:80
  File "node:internal/errors", line 490, in __node_internal_captureLargerStackTrace
  File "node:internal/errors", line 668, in __node_internal_exceptionWithHostPort
  File "node:net", line 1571, in TCPConnectWrap.afterConnect [as oncomplete]
Error: connect EHOSTUNREACH 192.168.0.10:80
  File "file:///app/node_modules/axios/lib/core/AxiosError.js", line 89, in AxiosError.from
  File "file:///app/node_modules/axios/lib/adapters/http.js", line 591, in RedirectableRequest.handleRequestError
  File "node:events", line 511, in RedirectableRequest.emit
  File "/app/node_modules/follow-redirects/index.js", line 14, in eventHandlers.<computed>
        this._redirectable.emit(event, arg1, arg2, arg3);
  File "node:events", line 511, in ClientRequest.emit
  File "node:_http_client", line 495, in Socket.socketErrorListener
  File "node:events", line 511, in Socket.emit
  File "node:internal/streams/destroy", line 151, in emitErrorNT
  File "node:internal/streams/destroy", line 116, in emitErrorCloseNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): lock file maintenance

Pending Status Checks

These updates await pending status checks. To force their creation now, click the checkbox below.

  • fix(deps): update dependency axios to v1.6.8

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • node alpine@sha256:577f8eb599858005100d84ef3fb6bd6582c1b6b17877a393cdae4bfc9935f068
  • node alpine@sha256:577f8eb599858005100d84ef3fb6bd6582c1b6b17877a393cdae4bfc9935f068
github-actions
.github/workflows/build.yml
  • vidavidorra/.github v4.1.10@7cf5201e53e0e2c4daf7298cf97e5dab5d631c23
  • vidavidorra/.github v4.1.10@7cf5201e53e0e2c4daf7298cf97e5dab5d631c23
  • actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
  • actions/setup-node v4.0.2@60edb5dd545a775178f52524783378180af0d1f8
  • vidavidorra/github-app-token v1.0.1@3bfc462f0355ce6268121fdb6c140a8bb4c6839a
.github/workflows/lint-commit-messages.yml
  • vidavidorra/.github v4.1.10@7cf5201e53e0e2c4daf7298cf97e5dab5d631c23
npm
package.json
  • @influxdata/influxdb-client 1.33.2
  • @vidavidorra/bunyan-pretty-stream 6.0.1
  • axios 1.6.7
  • bunyan 1.8.15
  • camelcase-keys 8.0.2
  • dotenv 16.4.5
  • luxon 3.4.4
  • read-pkg 9.0.1
  • rollbar 2.26.3
  • zod 3.22.4
  • @codedependant/semantic-release-docker 4.5.1
  • @commitlint/cli 18.6.1
  • @semantic-release/changelog 6.0.3
  • @semantic-release/exec 6.0.3
  • @semantic-release/git 10.0.1
  • @types/bunyan 1.8.11
  • @types/luxon 3.4.2
  • @types/node 20.11.28
  • @vidavidorra/commitlint-config 6.0.5
  • husky 8.0.3
  • lint-staged 15.2.2
  • npm-run-all 4.1.5
  • prettier 2.8.8
  • semantic-release 22.0.12
  • typescript 5.1.6
  • xo 0.54.2
  • node >=18

  • Check this box to trigger a request for Renovate to run again on this repository

HttpError: Write to InfluxDB failed.

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/18/


HttpError: failure writing points to database: partial write: field type conflict: input field "tariff" on measurement "measurement" is type string, already exists as type integer dropped=60
  File "/app/node_modules/@influxdata/influxdb-client/src/impl/node/NodeHttpTransport.ts", line 354, in IncomingMessage.<anonymous>
  File "node:events", line 523, in IncomingMessage.emit
  File "node:internal/streams/readable", line 1367, in endReadableNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

Error: data MUST be a valid bunyan record

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/22/


Error: data MUST be a valid bunyan record
  File "file:///app/node_modules/@vidavidorra/bunyan-pretty-stream/dist/bunyan-pretty-stream.js", line 20, in PrettyStream._transform
  File "node:internal/streams/transform", line 175, in Transform._write
  File "node:internal/streams/writable", line 399, in writeOrBuffer
  File "node:internal/streams/writable", line 340, in _write
  File "node:internal/streams/writable", line 344, in Writable.write
  File "/app/node_modules/bunyan/lib/bunyan.js", line 923, in Logger._emit
                s.stream.write(s.raw ? rec : str);
  File "/app/node_modules/bunyan/lib/bunyan.js", line 1045, in Logger.info
                str = this._emit(rec);
  File "file:///app/dist/exporter/exporter.js", line 25, in Measurement.start
  File "file:///app/dist/index.js", line 31, in <unknown>
  File "node:internal/modules/esm/module_job", line 192, in ModuleJob.run

Error: connect ECONNREFUSED 192.168.0.10:80

View details in Rollbar: https://app.rollbar.com/a/vidavidorra/fix/item/P1-meter-exporter/35


Error: connect ECONNREFUSED 192.168.0.10:80
  File "node:internal/errors", line 496, in __node_internal_captureLargerStackTrace
  File "node:internal/errors", line 671, in __node_internal_exceptionWithHostPort
  File "node:net", line 1574, in TCPConnectWrap.afterConnect [as oncomplete]
Error: connect ECONNREFUSED 192.168.0.10:80
  File "file:///app/node_modules/axios/lib/core/AxiosError.js", line 89, in AxiosError.from
  File "file:///app/node_modules/axios/lib/adapters/http.js", line 591, in RedirectableRequest.handleRequestError
  File "node:events", line 523, in RedirectableRequest.emit
  File "/app/node_modules/follow-redirects/index.js", line 14, in eventHandlers.<computed>
        this._redirectable.emit(event, arg1, arg2, arg3);
  File "node:events", line 511, in ClientRequest.emit
  File "node:_http_client", line 495, in Socket.socketErrorListener
  File "node:events", line 511, in Socket.emit
  File "node:internal/streams/destroy", line 151, in emitErrorNT
  File "node:internal/streams/destroy", line 116, in emitErrorCloseNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/30/


TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.
  File "/app/src/p1-meter/api.ts", line 49, in P1Meter.request
  File "node:internal/process/task_queues", line 95, in process.processTicksAndRejections
  File "/app/src/p1-meter/api.ts", line 41, in P1Meter.telegram
  File "/app/src/exporter/measurement.ts", line 17, in Measurement.export

DetailedError: Telegram failed with invalid data

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/11/


DetailedError: Telegram failed with invalid data
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/src/p1-meter/telegram/parse.ts", line 211, in parse
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/src/p1-meter/api.ts", line 27, in P1Meter.telegram
  File "node:internal/process/task_queues", line 95, in processTicksAndRejections
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/src/exporter/measurement.ts", line 21, in async Measurement.export

Error: connect EHOSTUNREACH 192.168.0.10:80

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/28/


Error: connect EHOSTUNREACH 192.168.0.10:80
  File "node:internal/errors", line 490, in __node_internal_captureLargerStackTrace
  File "node:internal/errors", line 668, in __node_internal_exceptionWithHostPort
  File "node:net", line 1571, in TCPConnectWrap.afterConnect [as oncomplete]
Error: connect EHOSTUNREACH 192.168.0.10:80
  File "file:///app/node_modules/axios/lib/core/AxiosError.js", line 89, in AxiosError.from
  File "file:///app/node_modules/axios/lib/adapters/http.js", line 591, in RedirectableRequest.handleRequestError
  File "node:events", line 511, in RedirectableRequest.emit
  File "/app/node_modules/follow-redirects/index.js", line 14, in eventHandlers.<computed>
        this._redirectable.emit(event, arg1, arg2, arg3);
  File "node:events", line 511, in ClientRequest.emit
  File "node:_http_client", line 495, in Socket.socketErrorListener
  File "node:events", line 511, in Socket.emit
  File "node:internal/streams/destroy", line 151, in emitErrorNT
  File "node:internal/streams/destroy", line 116, in emitErrorCloseNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

HttpError: Write to InfluxDB failed.

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/20/


HttpError: failure writing points to database: partial write: field type conflict: input field "tariff" on measurement "measurement" is type string, already exists as type integer dropped=61
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@influxdata/influxdb-client/src/impl/node/NodeHttpTransport.ts", line 354, in IncomingMessage.<anonymous>
  File "node:events", line 524, in IncomingMessage.emit
  File "node:domain", line 489, in IncomingMessage.emit
  File "node:internal/streams/readable", line 1359, in endReadableNT
  File "node:internal/process/task_queues", line 82, in processTicksAndRejections

TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/30/


TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.
  File "/app/src/p1-meter/api.ts", line 49, in P1Meter.request
  File "node:internal/process/task_queues", line 95, in process.processTicksAndRejections
  File "/app/src/p1-meter/api.ts", line 41, in P1Meter.telegram
  File "/app/src/exporter/measurement.ts", line 17, in Measurement.export

Error: data MUST be a valid bunyan record

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/24/


Error: data MUST be a valid bunyan record
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@vidavidorra/bunyan-pretty-stream/dist/bunyan-pretty-stream.js", line 20, in PrettyStream._transform
  File "node:internal/streams/transform", line 175, in PrettyStream.Transform._write
  File "node:internal/streams/writable", line 399, in writeOrBuffer
  File "node:internal/streams/writable", line 340, in _write
  File "node:internal/streams/writable", line 344, in PrettyStream.Writable.write
  File "/Users/jdbruijn/projects/p1-meter-exporter/node_modules/bunyan/lib/bunyan.js", line 923, in Logger._emit
                s.stream.write(s.raw ? rec : str);
  File "/Users/jdbruijn/projects/p1-meter-exporter/node_modules/bunyan/lib/bunyan.js", line 1045, in Logger.info
                str = this._emit(rec);
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/src/index.ts", line 14, in <unknown>
  File "node:internal/modules/esm/module_job", line 192, in ModuleJob.run

Error: read ECONNRESET

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/13/


Error: read ECONNRESET
  File "node:internal/errors", line 490, in __node_internal_captureLargerStackTrace
  File "node:internal/errors", line 620, in __node_internal_errnoException
  File "node:internal/stream_base_commons", line 217, in TCP.onStreamRead
Error: read ECONNRESET
  File "file:///app/node_modules/axios/lib/core/AxiosError.js", line 89, in AxiosError.from
  File "file:///app/node_modules/axios/lib/adapters/http.js", line 577, in RedirectableRequest.handleRequestError
  File "node:events", line 512, in RedirectableRequest.emit
  File "/app/node_modules/follow-redirects/index.js", line 14, in eventHandlers.<computed>
        this._redirectable.emit(event, arg1, arg2, arg3);
  File "node:events", line 512, in ClientRequest.emit
  File "node:_http_client", line 495, in Socket.socketErrorListener
  File "node:events", line 512, in Socket.emit
  File "node:internal/streams/destroy", line 151, in emitErrorNT
  File "node:internal/streams/destroy", line 116, in emitErrorCloseNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

HttpError: Write to InfluxDB failed.

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/18/


HttpError: failure writing points to database: partial write: field type conflict: input field "tariff" on measurement "measurement" is type string, already exists as type integer dropped=60
  File "/app/node_modules/@influxdata/influxdb-client/src/impl/node/NodeHttpTransport.ts", line 354, in IncomingMessage.<anonymous>
  File "node:events", line 523, in IncomingMessage.emit
  File "node:internal/streams/readable", line 1367, in endReadableNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

HttpError: Write to InfluxDB failed.

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/18/


HttpError: failure writing points to database: partial write: field type conflict: input field "tariff" on measurement "measurement" is type string, already exists as type integer dropped=60
  File "/app/node_modules/@influxdata/influxdb-client/src/impl/node/NodeHttpTransport.ts", line 354, in IncomingMessage.<anonymous>
  File "node:events", line 523, in IncomingMessage.emit
  File "node:internal/streams/readable", line 1367, in endReadableNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

Error: read ECONNRESET

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/13/


Error: read ECONNRESET
  File "node:internal/errors", line 490, in __node_internal_captureLargerStackTrace
  File "node:internal/errors", line 620, in __node_internal_errnoException
  File "node:internal/stream_base_commons", line 217, in TCP.onStreamRead
Error: read ECONNRESET
  File "file:///app/node_modules/axios/lib/core/AxiosError.js", line 89, in AxiosError.from
  File "file:///app/node_modules/axios/lib/adapters/http.js", line 591, in RedirectableRequest.handleRequestError
  File "node:events", line 511, in RedirectableRequest.emit
  File "/app/node_modules/follow-redirects/index.js", line 14, in eventHandlers.<computed>
        this._redirectable.emit(event, arg1, arg2, arg3);
  File "node:events", line 511, in ClientRequest.emit
  File "node:_http_client", line 495, in Socket.socketErrorListener
  File "node:events", line 511, in Socket.emit
  File "node:internal/streams/destroy", line 151, in emitErrorNT
  File "node:internal/streams/destroy", line 116, in emitErrorCloseNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/30/


TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.
  File "/app/src/p1-meter/api.ts", line 49, in P1Meter.request
  File "node:internal/process/task_queues", line 95, in process.processTicksAndRejections
  File "/app/src/p1-meter/api.ts", line 41, in P1Meter.telegram
  File "/app/src/exporter/measurement.ts", line 17, in Measurement.export

Error: read ECONNRESET

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/9/


Error: read ECONNRESET
  File "node:internal/errors", line 490, in __node_internal_captureLargerStackTrace
  File "node:internal/errors", line 620, in __node_internal_errnoException
  File "node:internal/stream_base_commons", line 217, in TCP.onStreamRead
Error: read ECONNRESET
  File "file:///app/node_modules/axios/lib/core/AxiosError.js", line 89, in AxiosError.from
  File "file:///app/node_modules/axios/lib/adapters/http.js", line 577, in RedirectableRequest.handleRequestError
  File "node:events", line 512, in RedirectableRequest.emit
  File "/app/node_modules/follow-redirects/index.js", line 14, in eventHandlers.<computed>
        this._redirectable.emit(event, arg1, arg2, arg3);
  File "node:events", line 512, in ClientRequest.emit
  File "node:_http_client", line 495, in Socket.socketErrorListener
  File "node:events", line 512, in Socket.emit
  File "node:internal/streams/destroy", line 151, in emitErrorNT
  File "node:internal/streams/destroy", line 116, in emitErrorCloseNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

Error: data MUST be a valid bunyan record

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/24/


Error: data MUST be a valid bunyan record
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@vidavidorra/bunyan-pretty-stream/dist/bunyan-pretty-stream.js", line 24, in PrettyStream._transform
  File "node:internal/streams/transform", line 175, in PrettyStream.Transform._write
  File "node:internal/streams/writable", line 399, in writeOrBuffer
  File "node:internal/streams/writable", line 340, in _write
  File "node:internal/streams/writable", line 344, in PrettyStream.Writable.write
  File "/Users/jdbruijn/projects/p1-meter-exporter/node_modules/bunyan/lib/bunyan.js", line 923, in Logger._emit
                s.stream.write(s.raw ? rec : str);
  File "/Users/jdbruijn/projects/p1-meter-exporter/node_modules/bunyan/lib/bunyan.js", line 1045, in Logger.info
                str = this._emit(rec);
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/src/index.ts", line 15, in <unknown>
  File "node:internal/modules/esm/module_job", line 192, in ModuleJob.run

Error: read EHOSTUNREACH

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/27/


Error: read EHOSTUNREACH
  File "node:internal/errors", line 490, in __node_internal_captureLargerStackTrace
  File "node:internal/errors", line 620, in __node_internal_errnoException
  File "node:internal/stream_base_commons", line 217, in TCP.onStreamRead
Error: read EHOSTUNREACH
  File "file:///app/node_modules/axios/lib/core/AxiosError.js", line 89, in AxiosError.from
  File "file:///app/node_modules/axios/lib/adapters/http.js", line 591, in RedirectableRequest.handleRequestError
  File "node:events", line 511, in RedirectableRequest.emit
  File "/app/node_modules/follow-redirects/index.js", line 14, in eventHandlers.<computed>
        this._redirectable.emit(event, arg1, arg2, arg3);
  File "node:events", line 511, in ClientRequest.emit
  File "node:_http_client", line 495, in Socket.socketErrorListener
  File "node:events", line 511, in Socket.emit
  File "node:internal/streams/destroy", line 151, in emitErrorNT
  File "node:internal/streams/destroy", line 116, in emitErrorCloseNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

The automated release is failing 🚨

🚨 The automated release from the main branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the main branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Docker authentication failed

Authentication to ghcr.io failed


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

HttpError: Write to InfluxDB failed.

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/20/


HttpError: failure writing points to database: partial write: field type conflict: input field "tariff" on measurement "measurement" is type string, already exists as type integer dropped=60
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@influxdata/influxdb-client/src/impl/node/NodeHttpTransport.ts", line 354, in IncomingMessage.<anonymous>
  File "node:events", line 524, in IncomingMessage.emit
  File "node:domain", line 489, in IncomingMessage.emit
  File "node:internal/streams/readable", line 1359, in endReadableNT
  File "node:internal/process/task_queues", line 82, in processTicksAndRejections

TypeError: Cannot read properties of undefined (reading 'startsWith')

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/26/


TypeError: Cannot read properties of undefined (reading 'startsWith')
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@vidavidorra/bunyan-pretty-stream/dist/helpers/normalise-path.js", line 4, in normalisePath
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@vidavidorra/bunyan-pretty-stream/dist/formatter/formatter.js", line 83, in Formatter.formatSource
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@vidavidorra/bunyan-pretty-stream/dist/formatter/formatter.js", line 47, in Formatter.format
  File "file:///Users/jdbruijn/projects/p1-meter-exporter/node_modules/@vidavidorra/bunyan-pretty-stream/dist/bunyan-pretty-stream.js", line 19, in PrettyStream._transform
  File "node:internal/streams/transform", line 175, in PrettyStream.Transform._write
  File "node:internal/streams/writable", line 399, in writeOrBuffer
  File "node:internal/streams/writable", line 340, in _write
  File "node:internal/streams/writable", line 344, in PrettyStream.Writable.write
  File "/Users/jdbruijn/projects/p1-meter-exporter/node_modules/bunyan/lib/bunyan.js", line 923, in Logger._emit
                s.stream.write(s.raw ? rec : str);
  File "/Users/jdbruijn/projects/p1-meter-exporter/node_modules/bunyan/lib/bunyan.js", line 1045, in Logger.error
                str = this._emit(rec);

Error: connect EHOSTUNREACH 192.168.0.10:80

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/28/


Error: connect EHOSTUNREACH 192.168.0.10:80
  File "node:internal/errors", line 490, in __node_internal_captureLargerStackTrace
  File "node:internal/errors", line 668, in __node_internal_exceptionWithHostPort
  File "node:net", line 1571, in TCPConnectWrap.afterConnect [as oncomplete]
Error: connect EHOSTUNREACH 192.168.0.10:80
  File "file:///app/node_modules/axios/lib/core/AxiosError.js", line 89, in AxiosError.from
  File "file:///app/node_modules/axios/lib/adapters/http.js", line 591, in RedirectableRequest.handleRequestError
  File "node:events", line 511, in RedirectableRequest.emit
  File "/app/node_modules/follow-redirects/index.js", line 14, in eventHandlers.<computed>
        this._redirectable.emit(event, arg1, arg2, arg3);
  File "node:events", line 511, in ClientRequest.emit
  File "node:_http_client", line 495, in Socket.socketErrorListener
  File "node:events", line 511, in Socket.emit
  File "node:internal/streams/destroy", line 151, in emitErrorNT
  File "node:internal/streams/destroy", line 116, in emitErrorCloseNT
  File "node:internal/process/task_queues", line 82, in process.processTicksAndRejections

AxiosError: maxContentLength size of -1 exceeded

View details in Rollbar: https://app.rollbar.com/a/vidavidorra/fix/item/P1-meter-exporter/36


AxiosError: maxContentLength size of -1 exceeded
  File "file:///app/node_modules/axios/lib/adapters/http.js", line 542, in IncomingMessage.handlerStreamAborted
  File "node:events", line 511, in IncomingMessage.emit
  File "node:_http_incoming", line 224, in IncomingMessage._destroy
  File "node:internal/streams/destroy", line 109, in _destroy
  File "node:internal/streams/destroy", line 71, in IncomingMessage.destroy
  File "node:_http_client", line 455, in Socket.socketCloseListener
  File "node:events", line 523, in Socket.emit
  File "node:net", line 334, in TCP.<anonymous>

Error: data MUST be a valid bunyan record

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/21/


Error: data MUST be a valid bunyan record
  File "file:///app/node_modules/@vidavidorra/bunyan-pretty-stream/dist/bunyan-pretty-stream.js", line 20, in PrettyStream._transform
  File "node:internal/streams/transform", line 175, in Transform._write
  File "node:internal/streams/writable", line 399, in writeOrBuffer
  File "node:internal/streams/writable", line 340, in _write
  File "node:internal/streams/writable", line 344, in Writable.write
  File "/app/node_modules/bunyan/lib/bunyan.js", line 923, in Logger._emit
                s.stream.write(s.raw ? rec : str);
  File "/app/node_modules/bunyan/lib/bunyan.js", line 1045, in Logger.info
                str = this._emit(rec);
  File "/app/src/exporter/exporter.ts", line 30, in Measurement.start
  File "/app/src/index.ts", line 45, in <anonymous>
  File "node:internal/modules/esm/module_job", line 192, in ModuleJob.run

Error: data MUST be a valid bunyan record

View details in Rollbar: https://rollbar.com/vidavidorra/P1-meter-exporter/items/23/


Error: data MUST be a valid bunyan record
  File "file:///app/node_modules/@vidavidorra/bunyan-pretty-stream/dist/bunyan-pretty-stream.js", line 20, in PrettyStream._transform
  File "node:internal/streams/transform", line 175, in Transform._write
  File "node:internal/streams/writable", line 399, in writeOrBuffer
  File "node:internal/streams/writable", line 340, in _write
  File "node:internal/streams/writable", line 344, in Writable.write
  File "/app/node_modules/bunyan/lib/bunyan.js", line 923, in Logger._emit
                s.stream.write(s.raw ? rec : str);
  File "/app/node_modules/bunyan/lib/bunyan.js", line 1045, in Logger.info
                str = this._emit(rec);
  File "/app/src/exporter/exporter.ts", line 30, in Measurement.start
  File "/app/src/index.ts", line 46, in <anonymous>
  File "node:internal/modules/esm/module_job", line 192, in ModuleJob.run

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.