Failed to get arespones from https

1092
7
09-28-2019 11:31 PM
khadijaF
New Contributor

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 .

0 Kudos
7 Replies
khadijaF
New Contributor

Team ,

please your responce is highly appreciated , as its too important for me

my project is depending on this .

please assist ...

0 Kudos
Stefan_Jung
Esri Contributor

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

0 Kudos
khadijaF
New Contributor

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

0 Kudos
Stefan_Jung
Esri Contributor

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:

  • Does the server has Internet connection? (Firewall etc even if port 443 should be open by Default)
  • Did you try to access the website via browser from the server?
  • You could also try to access it via CURL in the command line of the server:
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

0 Kudos
by Anonymous User
Not applicable

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. 

0 Kudos
khadijaF
New Contributor
I tried the first option with Postman but it shows no access or invalid token received .
would you please share with me how do you developed  , I will be highly appreciated .  
0 Kudos
by Anonymous User
Not applicable

FYI...

With the above steps you should able to get token for your subsequent requests. 

Cheers,

minbin

0 Kudos