-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Description
When starting the hepsub-cgrates project using the command nodejs cgrates.js, the API server starts, but immediately logs an error related to the registration API.
Expected Behavior
The API server should start without any errors, and it should successfully register with the backend service.
Actual Behavior
The API server starts and logs the following output and error:
API Server started 18088
REGISTER API ERROR 400 Bad Request
Configuration
Here is the relevant portion of the config.js file:
var config = {
backend: 'http://localhost:9080/api/v3/agent/subscribe',
token: 'gMjKsDIEnoBYuRlGJJLRyTHZZBNIvbcMHDVgcetKWvfbptajLyAMqWUOIHCZJmwcucSDRsILYmZfXaDY',
service: {
"uuid": Math.random().toString(36).substring(7),
"host":"127.0.0.1",
"port": 18088,
"protocol": "http",
"path": "/get",
"type": "cdr",
"ttl": 300,
"node": "cgrates",
"gid": 10
},
debug: true,
cgrates: {
"url": "http://192.168.0.115:2080/jsonrpc",
"tenant": "cgrates.org",
"hep_field": "callid"
}
};Environment
- HOMER installation guide used: HOMER Quick Install Docker
- CGRates running on my local machine.
Please advise on any steps that can be taken to resolve this error.
Thank you!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels