jonsamwell / angular-http-batcher

Enables HTTP batch request with AngularJS
MIT License
96 stars 28 forks source link

service url always taking http:// instead of https:// #43

Open arunangshude opened 5 years ago

arunangshude commented 5 years ago

We are facing some issues. While calling the service url https:// endpoint it gets converted automatically to http:// and therefore getting 404 error.

jonsamwell commented 5 years ago

How do you reproduce this? I have used it with https endpoints without trouble.

On Wed, Aug 28, 2019, 17:50 arunangshude notifications@github.com wrote:

We are facing some issues. While calling the service url https:// endpoint it gets converted automatically to http:// and therefore getting 404 error.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jonsamwell/angular-http-batcher/issues/43?email_source=notifications&email_token=AA4F7IMLIYWBYPOUIXXZD3TQGYU4BA5CNFSM4IQ6EL32YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HH3BWNA, or mute the thread https://github.com/notifications/unsubscribe-auth/AA4F7IPTIKRVTCVIR2MYPMDQGYU4BANCNFSM4IQ6EL3Q .

arunangshude commented 5 years ago

Hi Jon,

Thanks for you reply ☺

I did the same way which is documented. Below is the description of the urls

serviceUrl : is a azure APIM url (.Net WebApi app configured under azure APIM) batchEndpointUrl : is a azure web app url (.Net MVC Web App deployed in azure app services)

Earlier both url (serviceUrl, batchEndpointUrl) was http and it was in a single asp.net MVC web app. It was working fine.

Now our domains are configured with https and different app all together. Below is the error coming (for company policy I am not able to share actual urls).

HTTP/1.1 404 Not Found Content-Type: application/json; charset=utf-8

{"Message":"No HTTP resource was found that matches the request URI 'http:// ..../EventApi/ParticipationGroups/33690'.","MessageDetail":"No type was found that matches the controller named 'EventApi'."}

Please help to resolve this issue.

Thanks and Regards, Arun

On Wed, Aug 28, 2019 at 4:55 PM Jon Samwell notifications@github.com wrote:

How do you reproduce this? I have used it with https endpoints without trouble.

On Wed, Aug 28, 2019, 17:50 arunangshude notifications@github.com wrote:

We are facing some issues. While calling the service url https:// endpoint it gets converted automatically to http:// and therefore getting 404 error.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/jonsamwell/angular-http-batcher/issues/43?email_source=notifications&email_token=AA4F7IMLIYWBYPOUIXXZD3TQGYU4BA5CNFSM4IQ6EL32YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HH3BWNA , or mute the thread < https://github.com/notifications/unsubscribe-auth/AA4F7IPTIKRVTCVIR2MYPMDQGYU4BANCNFSM4IQ6EL3Q

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jonsamwell/angular-http-batcher/issues/43?email_source=notifications&email_token=AIDILE32Q6PEOQQO6DQHBDLQGZOD5A5CNFSM4IQ6EL32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5KZHGI#issuecomment-525702041, or mute the thread https://github.com/notifications/unsubscribe-auth/AIDILE5GHMZKYIH46FSQZBDQGZOD5ANCNFSM4IQ6EL3Q .

-- Thanks and Regards, Arunangshu De.

jonsamwell commented 5 years ago

@arunangshude could you post the configuration code?