cancel
Showing results for 
Search instead for 
Did you mean: 

Rest Receiver PING channel-Basic Authentication

dileepkrc307
Participant
0 Kudos

Dear Sir,

I have requirement like proxy to rest(POST API with credentials) in PI 7.5

Maintained credentials in basic authentication.

When i checked ping channel here is http options 403 error could you please tell is it issue or not?

I have installed ssl cert in TrustedCAs.

The issue is i am getting 204 code when i call API.

Could you please help on this issue.

Thanks & Regards,

Dileep

Accepted Solutions (0)

Answers (2)

Answers (2)

saurabh-333
Participant
0 Kudos

204 No Content is not exactly an error. It just means that the resource your URL is trying call is no longer available or have been moved.

For example if your make an API call to approve a PR through a cart no. in URL and someone else (person or other job) has already approved it before call from your API, you will get a 204 Status code.

It doesn't mean the call has failed, it just mean the parameters you have provided in your call are no longer pointing to any resource on target server.

And 404 in ping just mean the target API host can't handle OPTIONS REQUESTS, you are fine to ignore it.

dileepkrc307
Participant

Dear Sir,

Issue is solved.

Maintained credentials in http headers.

Authorization:basic username:password(encrypted)

Thanq very much.

PiotrRadzki
Active Participant
0 Kudos

Hi Dileep,

looks like you don't have permission on target side to use HTTP OPTIONS, this might be not mandatory for your scenario, in contrary looks like HTTP GET is possible.

I would suggest to build simple POC ICO and cover your GET/POST requirements to make sure you can connect properly and not missing any permission on target side.

For HTTP 204 it is more related to the target API and specific of that call. Do you have access to API specification?

BR, Piotr

dileepkrc307
Participant
0 Kudos

Thanq very much sir