Comments (7)
I will make a patch tonight with an option to disable validation just for the HTTP client.
from bitrix.
I will have to investigate this
from bitrix.
You can set NODE_TLS_REJECT_UNAUTHORIZED
environment variable to 0. Doing so will disable certificate validation in node, which is not the best option for production but so does self-signed certificate.
Let me know if this solution works for you.
from bitrix.
You can always set env variables from JS/TS code itself
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
from bitrix.
Yea, this solves the problem, but I dont want to disable it globally, setting ENV var will affect some other parts of my code
from bitrix.
An option to override HTTP client behavior was implemented in 8555802 that will be published on NPM after I will run some more tests
from bitrix.
Version 2.4.0 was published on NPM. Let me know if it works for you:
const bitrix = Bitrix('https://PORTAL_NAME.bitrix24.ru/rest', 'ACCESS_TOKEN', {https: { rejectUnauthorized: false }})
from bitrix.
Related Issues (20)
- Add hero image HOT 2
- 414 Request-URI Too Large HOT 6
- Userfield at company HOT 1
- authentication error HOT 1
- I think it's an issue with old version of got HOT 1
- Data marshalling and aggregation HOT 1
- Using list methods where result is not an array HOT 1
- crm.livefeedmessage.add HOT 2
- Use in browser? HOT 1
- Response code 414 (Request-URI Too Large) HOT 2
- Error in batch response HOT 1
- Adding a file to a custom field when creating a deal HOT 1
- Bitrix Constructor Error HOT 2
- Get Invoice list without pagination HOT 1
- access_token on Bitrix instance not working (always 401) HOT 10
- Smart Process Automation (SPA) issue
- Test files should be linted as well to provide better code quality
- Ideas for v3
- URL is not a constructor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitrix.