Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

IP Address parse error on client requests #78

Open
jcardarelliftv opened this issue Nov 16, 2016 · 2 comments
Open

IP Address parse error on client requests #78

jcardarelliftv opened this issue Nov 16, 2016 · 2 comments

Comments

@jcardarelliftv
Copy link

Hi !

After an update via nuget, every time a client post data calling my Web Api the error described below occurs:

in Systin.Net.IPAddress.InternalParse(String ipString, Boolean tryParse)
in WebApiThrottle.IPAddressRange..ctor(String ipRangeString)
in WebApiThrottle.Net.IpAddressUtil.ContainsIp(List`1 ipRules, String clientIp)
in WebApiThrottle.ThrottlingCore.IsWhitelisted(RequestIdentity requestIdentity)
in WebApiThrottle.ThrottlingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
in Systin.Net.Http.DelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
in TravelHub.Base.Loggers.Monitoramento.InspetorRest.d__33.MoveNext()---
Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
in Systin.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
in Systin.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
in TravelHub.Base.Servicos.Web.Api.Handlers.EncodingDelegateHandler.d__6.MoveNext()--
Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
in Systin.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
in Systin.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
in Systin.Web.Http.Owin.PassiveAuthenticationMessageHandler.d__0.MoveNext()---
Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
in Systin.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
in Systin.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
in Systin.Web.Http.HttpServer.d__0.MoveNext()

@stefanprodan: Can you help us, please ? Are there another issue like this ?

Tks,

Juliano Cardarelli

@stefanprodan
Copy link
Owner

Can you please remove the whitelisted IPs and test if it's working?

@jcardarelliftv
Copy link
Author

Hi Prodan !

Removing the whitelist we have no problem and there is no error when a client post any data to the web api. But, we need to use the whitelist to a specific IP client.

In a local environment (not in Azure), there is no error while we are using the whitelist. But, the error occurs when the api is deployed to the azure.

Always is the same stack trace.

Best regards,

Juliano Cardarelli


De: Stefan Prodan [email protected]
Enviado: quarta-feira, 16 de novembro de 2016 14:06
Para: stefanprodan/WebApiThrottle
Cc: Juliano Cardarelli; Author
Assunto: Re: [stefanprodan/WebApiThrottle] IP Address parse error on client requests (#78)

Can you please remove the whitelisted IPs and test if it's working?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/78#issuecomment-260987006, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWaX-TKayaUarLLoD9S-nnoDT-XJb9Gdks5q-yoigaJpZM4Kz06Z.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants