I'm trying to configure poll external secured website (https://integrate.om.mixtelematics.com/#api-reference) to GeoEvent , but its failing .
although I pass the APi client and username and password in the header using the get and post method but its failing .
appricit your kind support as its too important for me .
Team ,
please your responce is highly appreciated , as its too important for me
my project is depending on this .
please assist ...
Hi khadija F,
did you check the GeoEvent Logfiles to see what exaclty is failing?
Often the error connecting to a https site is due missing certificates. Did you import the certificate of the target server into the ArcGIS Server, that was installed with GeoEvent Server? Don't Forget to also import the root and intermediate certificate if they exist.
Best Stefan
Hello Stefan,
I got bellow error ...
((loger : com.esri.ges.httpclient.Http)Second attempt failed. Giving up. (https://integrate.om.mixtelematics.com/api/assets/1 --- Connect to integrate.om.mixtelematics.com:443 [integrate.om.mixtelematics.com/185.64.24.232] failed: Connection timed out: connect)
)
your assistance is highly appreciated .
Thanks,
KHADIJA
Hi khadija F,
It looks like the GeoEvent Server does not have access to the integrate.om.mixtelematics.com at all.
Straight away I just think of simple points to check:
curl -X GET --header 'Accept: application/json' --header 'x-testing: true' --header 'X-Forwarded-CorrelationId: MiX.Integrate.SwaggerUI' 'https://integrate.om.mixtelematics.com/api/assets/1'
Best,
Stefan
Hi Khadija,
I've just developed a connector for one client to poll data from MixTelematix API, constantly fetching vehicle locations.
In my case, as there are some rules to check location etc. so I didn't use the out-of-box connector to request the API.
Two suggestion I would give here:
1. Get a valid token for API
In my case, I used code to generate bearer token first and use this token in the header for subsequent requests rather than you using credential details in the header.
I would agree with Stefan using another approach to test your way to communicate with api first. I was using Postman to ensure the parameters provides are correct.
2. Import certificate into GEP
Otherwise, you would get some error in logs like... invalid certificate..PKIX.
You seem didn't arrive at this stage yet.
FYI...
With the above steps you should able to get token for your subsequent requests.
Cheers,
minbin