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

Sending POST API method in iOS using hot restart is not working #15075

Closed
alfarajali opened this issue May 14, 2023 · 2 comments
Closed

Sending POST API method in iOS using hot restart is not working #15075

alfarajali opened this issue May 14, 2023 · 2 comments
Labels
platform/iOS 🍎 s/needs-repro Attach a solution or code which reproduces the issue s/no-recent-activity Issue has had no recent activity t/bug Something isn't working

Comments

@alfarajali
Copy link

alfarajali commented May 14, 2023

Description

I recently did the upgrade to Visual Studio 17.6.0 Preview 7.0 and when attempting to send a POST method in iOS below error message is received:

An error occurred: 'Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x2809dad30 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (Local network prohibited), interface: en0[802.11], ipv4, ipv6, _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <49A16912-94DF-4703-8B57-82ADAECA910A>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <49A16912-94DF-4703-8B57-82ADAECA910A>.<1>

Steps to Reproduce

  1. Create new project in MAUI
  2. Create a sample API with POST method in asp.net
  3. Consume the API in your MAUI project
  4. Call the POST method

Link to public reproduction project repository

No link

Version with bug

7.0 (current)

Last version that worked well

7.0 (current)

Affected platforms

iOS

Affected platform versions

iOS 16

Did you find any workaround?

No

Relevant log output

No response

@alfarajali alfarajali added the t/bug Something isn't working label May 14, 2023
@drasticactions drasticactions added the s/needs-repro Attach a solution or code which reproduces the issue label May 14, 2023
@ghost
Copy link

ghost commented May 14, 2023

Hi @alfarajali. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@alfarajali alfarajali changed the title Calling API method in iOS using hot restart is not working Sending POST API method in iOS using hot restart is not working May 15, 2023
@ghost ghost added the s/no-recent-activity Issue has had no recent activity label May 19, 2023
@ghost
Copy link

ghost commented May 19, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed May 22, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 21, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/iOS 🍎 s/needs-repro Attach a solution or code which reproduces the issue s/no-recent-activity Issue has had no recent activity t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants