Failing to send a HTTP/1.0 post request. Getting the following error.
TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"
at new NodeError (node:internal/errors:329:5)
at new ClientRequest (node:_http_client:168:11)
at Object.request (node:http:52:10)
at /Users/yash/elocity/utilityportal-backend/src/ocpp/command/CommandStateManager.ts:167:43
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:94:5) {
code: 'ERR_INVALID_PROTOCOL'
}
Configuration of the agent and http request client:
Failing to send a HTTP/1.0 post request. Getting the following error.
Configuration of the agent and http request client:
I am not really familiar with making HTTP/1.0 request so any help regarding this would be greatly appreciated.