nokia / OSSMediator

BSD 3-Clause "New" or "Revised" License
10 stars 10 forks source link

While try to run the NDAC OSSM in a docker container, I face this error. Post \"https://api.dac.nokia.com/api/ndac/v2/organizations\": x509: certificate signed by unknown authority #47

Closed britto-prabhu closed 6 months ago

britto-prabhu commented 7 months ago

I was trying to run the OSS Mediator in a docker container, I face the following error after the folders created

2024-04-17 11:25:33 time="2024-04-17T05:55:32Z" level=error msg="Error while calling https://api.dac.nokia.com/api/ndac/v2/organizations for xxx@xxx.com" error="Post \"https://api.dac.nokia.com/api/ndac/v2/organizations\": x509: certificate signed by unknown authority" tid=1001
2024-04-17 11:25:33 time="2024-04-17T05:55:32Z" level=error msg="Error while fetching orguuid" error="Post \"https://api.dac.nokia.com/api/ndac/v2/organizations\": x509: certificate signed by unknown authority" tid=1001

Someone please provide the certs for the NDAC OSSM.

soursing commented 7 months ago

Hi, Please use https://console.dac.nokia.com/api/ndac/v2 as base_url in collector configuration.

Organization APIs aren't available on api.dac.nokia.com, we've updated the configuration to use console.dac.nokia.com in 4.1 release.

Can you try to update the OSSMediator image to latest version and configuration and check.

britto-prabhu commented 7 months ago

Thanks @soursing for the response. I tried both and have this issue on both the api's. Will try to update the OSSMediator image to latest and will see if this issue goes

soursing commented 6 months ago

@britto-prabhu Are you still facing issue with the API?

britto-prabhu commented 6 months ago

@soursing the issue was resolved after using the skip_tls attribute :) This issue can be closed. Thanks for the support @soursing