Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] How to check API calls? #1206

Open
pcdus opened this issue Jul 28, 2021 · 1 comment
Open

[QUESTION] How to check API calls? #1206

pcdus opened this issue Jul 28, 2021 · 1 comment
Labels

Comments

@pcdus
Copy link

pcdus commented Jul 28, 2021

Texte source
Hello,

On my mobile projects, I often use Charles Proxy to see the APIs interactions: this help me to see if some issues are coming from the app, or from the APIs.

I just come to recover a Xamarin.Forms project where Refit is used for all API calls: I don't see any trace in Charles Proxy.

Is it normal? Is there another way to "debug" API calls done with Refit?

@pcdus pcdus added the bug label Jul 28, 2021
@rdavisau
Copy link
Member

rdavisau commented Jul 31, 2021

If you don't see any simulator traffic from a Xamarin app using Charles, it's possible that the project is not using the native NSUrlSessionHandler. That might be due to the setting in the iOS .csproj (older templates used the managed handler by default I think), or because code in the project instantiates or otherwise causes the managed handler to be used for the refit calls. Some info at https://docs.microsoft.com/en-us/xamarin/cross-platform/macios/http-stack.

The HttpClient stack and SSL/TLS implementation selector determines the HttpClient and SSL/TLS implementation that will be used by your Xamarin iOS, tvOS, or macOS app.

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

No branches or pull requests

2 participants