В этой статье
- Войдите, чтобы написать ответ
- Пытаюсь написать бота для телеграмма на Python, который будет задавать рандомны вопрос и проверял ответы пользователя, но не получается.?
- What is error:0308010C:digital envelope routines::unsupported?
- How to reproduce this issue
- Бот рандомно выбирает вопрос, но проверяет по ответам для 1 вопроса, как исправить?
- Как можно ускорить код?
- Javascript code to disable mouse right click
- How to resolve error:0308010C:digital envelope routines::unsupported?
- Solution 1: Add the legacy OpenSSL in package.json
- Solution 2: Downgrade Node.JS to Long Term Support(LTS)
- Solution 3: Setting openssl-legacy-provider Globally
- Как передавать данные из ассинхронного цикла, запущенного в потоке?
- How to Submit a Form using JavaScript
- How to use node.js REPL terminal?
- Conclusion
- Sign Up for Our Newsletters
- Create GUID/UUID in JavaScript
- Aiogram, как сделать регистрацию пользователя?
- Как правильно построить связь между циклом событий и основным (не ассинхронным) циклом приложения?
- Как поменять язык laravel socialite telegram?
- Measure JavaScript Execution time console.time() and console.timeEnd()
- Как поделиться переменными между потоками из разных модулей?
- Как и для чего использовать .name в коде?
- Как обратиться к объекту класса renpy, если я не знаю его имя?
- Минуточку внимания
Войдите, чтобы написать ответ
Войти через центр авторизации
<хедер class="section-хедер">
Похожие вопросы
Python
- +2 ещё
Средний
хедер>
Пытаюсь написать бота для телеграмма на Python, который будет задавать рандомны вопрос и проверял ответы пользователя, но не получается.?
- 1 подписчик
- 8 минут назад
- 10 просмотров
ответов
0

Python
- +2 ещё
Простой
What is error:0308010C:digital envelope routines::unsupported?
So today, when we are setting up and running the React project using the latest version of Node.JS 17 or above, we ran into the below issue.
[webpack-cli] Error: error:0308010C:digital envelope routines::unsupportedat new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at BulkUpdateDecorator.hashFactory (/opt/src/node_modules/webpack/lib/util/createHash.js:155:18)
opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ],
library: ‘digital envelope routines’,
reason: ‘unsupported’,
code: ‘ERR_OSSL_EVP_UNSUPPORTED’
The error can also occur if you build the application using docker build since it pulls the latest version of Node.JS by default.
This error is because node.js 17 uses OpenSSL3, which has changed code for initialization context of md family (including md4), and this is a breaking change.
We can find more details about the OpenSSL3 upgrade over here.
The Node JS version 17 is not the LTS (Long Term Support), and it is not compatible with the webpack version 4.
How to reproduce this issue
Create two separate data type variables in python, say an integer value and a string value. Using the plus “+” operator to concatenate these values. This error TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’ will be seen due to the mismatch between the data types of the values.
The code below indicates the concatenation of two separate data type values. The value of x is the integer of y. The value of y is a string.
x = 5
y = “Yawin Tutor”
print x + y
Бот рандомно выбирает вопрос, но проверяет по ответам для 1 вопроса, как исправить?
- 1 подписчик
- час назад
- 48 просмотров
ответа
3

Python
- +1 ещё
Простой
Как можно ускорить код?
- 1 подписчик
- 12 часов назад
- 86 просмотров
ответ
1

Python
Простой
Javascript code to disable mouse right click
- Srinivas
- August 25, 2021
You could use Javascript code to disable mouse right click on the webpage. This article demonstrates two methods to disable the context menu with the right click of a mouse… View Post
- Javascript
- 2 minute read
<хедер class="entry-хедер"> хедер>
How to resolve error:0308010C:digital envelope routines::unsupported?
There are multiple ways to resolve the issue. Let us take a look at each of these solutions.
Solution 1: Add the legacy OpenSSL in package.json
If you still want to use Node.js 17 or above and resolve the issue, you can go to package.json and modify the line.
“start”: “react-scripts start”
to
“start”: “react-scripts –openssl-legacy-provider start”
Changing this script in package.json makes Node.js use OpenSSL 3 in the legacy mode, which means you are running with known insecure algorithms.
Solution 2: Downgrade Node.JS to Long Term Support(LTS)
The other alternate way is to downgrade the Node.JS to LTS version 16.14.0, to resolve the issue.
There are various ways to install and use Node.js versions. One of the best ways is to use Node Version Manager to manage multiple node versions.
Step 1: Install the Node Version manager using the below command.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Step 2: You can install the specific node.js version or just use the below command to install the node.js LTS version.
nvm install –lts
Step 3: Set the node.js to use the latest LTS version using the following command.
nvm use –lts
In the case of the Docker build, you can modify the DockerFile something like this.
…
FROM node:alpine
…
to
…
FROM node:16-alpine3.12
…
Solution 3: Setting openssl-legacy-provider Globally
Setting the NODE_OPTIONS is not a recommended approach, but you can still try this on your local machine as a quick fix.
The same can be tried in the case of the Docker build. All you need to do is add the below line in your DockeFile to resolve the issue.
RUN export NODE_OPTIONS=–openssl-legacy-provider && yarn build && yarn install –production –ignore-scripts –prefer-offline
Как передавать данные из ассинхронного цикла, запущенного в потоке?
- 1 подписчик
- 13 часов назад
- 46 просмотров
ответ
1

Python
Простой
How to Submit a Form using JavaScript
- Srinivas
- August 25, 2021
The easiest way to submit a form using JavaScript is by using HTMLFormElement.submit() method. This method does something similar to activating a submit button of the form. If a form… View Post
- Javascript
- How To
- 1 minute read
<хедер class="entry-хедер"> хедер>
How to use node.js REPL terminal?
- Srinivas
- January 14, 2022
Table of Contents Hide Different tasks that can be performed in REPL EnvironmentHow to Start REPL in Node.JS?How to check List of Commands Supported by Node.JS REPL?How to use node.js… View Post
- Javascript
- How To
- 1 minute read
<хедер class="entry-хедер"> хедер>
Conclusion
The error:0308010C:digital envelope routines::unsupported occurs with the Node.js version 17 as it’s not the LTS version, and there is a breaking change in the OpenSSL.
We can resolve the issue by downgrading the Node.js version to LTS (16.14.0) or by modifying the package.json start script to “start”: “react-scripts –openssl-legacy-provider start”
report this adTotal1Shares1Share0Tweet0Share0Share0Share
Sign Up for Our Newsletters
Subscribe to get notified of the latest articles. We will never spam you. Be a part of our ever-growing community.
SubscribeBy checking this box, you confirm that you have read and are agreeing to our terms of use regarding the storage of the data submitted through this form.
Create GUID/UUID in JavaScript
- Srinivas
- January 14, 2022
There might be situations where you would be creating GUID in Javascript, Currently JavaScript doesn’t have any Built-in method to generate the GUID/UUID. We could use Math.random() or Date().getTime() and… View Post
- Javascript
- How To
- 2 minute read
<хедер class="entry-хедер"> хедер>
Aiogram, как сделать регистрацию пользователя?
- 1 подписчик
- 14 часов назад
- 53 просмотра
ответов
0

Python
- +2 ещё
Простой
Как правильно построить связь между циклом событий и основным (не ассинхронным) циклом приложения?
- 2 подписчика
- 17 часов назад
- 121 просмотр
ответ
1

Telegram
Простой
- 1 подписчик
- 17 часов назад
- 36 просмотров
ответов
0

Python
- +1 ещё
Простой
Measure JavaScript Execution time console.time() and console.timeEnd()
- Srinivas
- August 25, 2021
Debugging the JavaScipt code to identify performance issue is a very tedious task. There are built-in JavaScript methods which you could use to measure the performance and the time taken… View Post
- Node.js
- 4 minute read
<хедер class="entry-хедер"> хедер>
Как поделиться переменными между потоками из разных модулей?
- 1 подписчик
- 18 часов назад
- 66 просмотров
ответа
3

Python
Простой
Как и для чего использовать .name в коде?
- 1 подписчик
- 19 часов назад
- 67 просмотров
ответ
1

Python
Простой
Как обратиться к объекту класса renpy, если я не знаю его имя?
- 1 подписчик
- вчера
- 110 просмотров
ответ
1
Вакансии с Хабр Карьеры
Python разработчик
Сбер
•Иннополис
от 80 000 ₽
Python-разработчик (Платформа Linux)
Сбер
•Москва
от 250 000 до 350 000 ₽
Python-разработчик в «Госуслуги.Культуру»
Notamedia
До 220 000 ₽
Ещё вакансии
Заказы с Хабр Фриланса
Консультация по SEO продвижению сайта
26 окт. 2022, в 11:01
500 руб./за проект
Создание графического дизайна для презентации “Архитектура ПО”
26 окт. 2022, в 10:46
5000 руб./за проект
Скопировать дизайн
26 окт. 2022, в 10:20
500 руб./в час
Ещё заказы
Минуточку внимания
Присоединяйтесь к сообществу, чтобы узнавать новое и делиться знаниями
Зарегистрироваться
Самое интересное за 24 часа
Как избавиться от не способности придумать адекватное название блокам?
- 2 подписчика
- 0 ответов
Возможен ли автоматический перевод на meilisearch?
- 3 подписчика
- 1 ответ
Можно ли установить cookie в сhrome-extension://jcdepgciemlnffgkpbokhodcnhffhpca?
- 2 подписчика
- 1 ответ
Сетевое обнаружение?
- 2 подписчика
- 2 ответа
Как выглядит правильный процесс тестирования?
- 11 подписчиков
- 1 ответ
Как cookie увидеть в браузере, устанавливаю через document.cookie, но в браузере, DevTools->Application->Cookies эти куки не видны?
- 2 подписчика
- 0 ответов
Какие есть беспроводные наушники со сменным аккумулятором для ПК?
- 3 подписчика
- 1 ответ
Какие есть бесплатные простые движки для ведения личного блога?
- 2 подписчика
- 1 ответ
Как искать коммутаторы, получающие питание по POE?
- 4 подписчика
- 2 ответа
Как дешифровать эти сообщения?
- 3 подписчика
- 0 ответов
- © Habr
- О сервисе
- Обратная связь
- Блог
- https://qna.habr.com/q/1174828
- https://itsmycode.com/error-digital-envelope-routines-unsupported/
- https://www.yawintutor.com/typeerror-unsupported-operand-types-for-int-and-str/