I have recently updated my system and imported all my files over and having telegram issues in node-red, I can see what is causing it but have no idea how to fix it.
It appears that request has deprecated along with request-promises.
I’m getting the following log.
Log
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Add-on: Node-RED
Flow-based programming for the Internet of Things
-----------------------------------------------------------
Add-on version: 6.1.3
You are running the latest version of this add-on.
System: Ubuntu 18.04.4 LTS (i386 / qemux86)
Home Assistant Core: 0.106.1
Home Assistant Supervisor: 209
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] node-red.sh: executing...
patching file nodes/ui_base.html
Hunk #1 succeeded at 1243 (offset 712 lines).
audited 367 packages in 6.237s
11 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
[cont-init.d] node-red.sh: exited 0.
[cont-init.d] user.sh: executing...
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[12:48:32] INFO: Starting Node-RED...
> addon-node-red@ start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
10 Mar 12:48:44 - [info]
Welcome to Node-RED
===================
10 Mar 12:48:45 - [info] Node-RED version: v1.0.4
10 Mar 12:48:45 - [info] Node.js version: v12.15.0
10 Mar 12:48:45 - [info] Linux 5.3.0-40-generic ia32 LE
10 Mar 12:48:45 - [info] Loading palette nodes
###
### The "request" library is not installed automatically anymore.
### But is a dependency of "request-promise".
### Please install it with:
### npm install request --save
###
###
### The "request" library is not installed automatically anymore.
### But is a dependency of "request-promise".
### Please install it with:
### npm install request --save
###
10 Mar 12:49:44 - [info] Dashboard version 2.19.4 started at /endpoint/ui
Traceback (most recent call last):
File "/opt/node_modules/node-red-node-pi-gpio/testgpio.py", line 4, in <module>
import RPi.GPIO as GPIO
File "/usr/lib/python2.7/site-packages/RPi/GPIO/__init__.py", line 23, in <module>
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!
10 Mar 12:49:50 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
10 Mar 12:49:51 - [warn] ------------------------------------------------------
10 Mar 12:49:51 - [warn] [node-red-contrib-telegrambot-home/bot] Error: Cannot find module '/config/node-red/node_modules/tweetnacl/nacl-fast.js'. Please verify that the package.json has a valid "main" entry
10 Mar 12:49:51 - [warn] [node-red-contrib-telegrambot/telegrambot] Error: Cannot find module '/config/node-red/node_modules/tweetnacl/nacl-fast.js'. Please verify that the package.json has a valid "main" entry
10 Mar 12:49:51 - [warn] ------------------------------------------------------
10 Mar 12:49:51 - [info] Settings file : /etc/node-red/config.js
10 Mar 12:49:51 - [info] Context store : 'default' [module=memory]
10 Mar 12:49:51 - [info] User directory : /config/node-red/
10 Mar 12:49:51 - [warn] Projects disabled : editorTheme.projects.enabled=false
10 Mar 12:49:51 - [info] Flows file : /config/node-red/flows.json
10 Mar 12:49:52 - [info] Server now running at http://127.0.0.1:46836/
[12:49:52] INFO: Starting NGinx...
10 Mar 12:49:52 - [info] Waiting for missing types to be registered:
10 Mar 12:49:52 - [info] - telegrambot-config
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
Any help will be much appreciated!