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
Error: A server with the specified hostname could not be found #2028
Comments
👀 SDKONCALL-164 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
Hey @jesus-mg-ios, it looks like the devices are encountering DNS issues preventing the connection to our API, but doesn't necessarily seem related to RevenueCat being down - are you able to reproduce this on your end? Or is it just occurring randomly? |
It just happens in random end devices ... But it grows up since more or less 20 Oct |
Hey @jesus-mg-ios - thanks for the info, seems like it might be an issue with the customer's DNS but, since it seems to be increasing lately, we'll take a look on our end and follow up when we have more info. |
Hey @jesus-mg-ios, just a heads up that this is still on the team's backlog. |
@codykerns thanks for the heads up! |
Hey, is there an update about this issue? Or better asked, how long are such tickets usually in the backlog/will this be fixed in the next two months? 😅 I am just asking since I want to release a major update for one of my apps with a change from paid app to freemium, using RevenueCat and I get this error for macOS (13.0.1; SDK Version 14.5.0; StoreKit 2, Xcode Version 14.2). And since I already have to send out some press releases, I just want to know if I can also mention macOS support or if I have to postpone the release for Mac because of this issue. Thanks in advance! |
Hi @TemperMichael, We'll probably look into it this week. In the mean time, could you let us know more about the environment where you're reproducing this? Is it a native macOS app or Catalyst? What happens if you try to Thanks. |
Ah perfect - It's a native mac app, I am using the same code for iOS and tvOS and there it works fine. For the ping I get a timeout. I am in Austria, my ISP is T-Mobile (Magenta). For DNS I haven't added/setup any specific, for
|
Example: > DEBUG: ℹ️ Failing url 'https://0.0.0.0/offers' resolved to host '0.0.0.0' Looking into #2028, it appears that the user is getting a `NSURLErrorCannotFindHost` with a `NSErrorFailingURLKey`. We didn't determine that this was a `DNS` error because whatever the host resolved to, wasn't one of `Set(["0.0.0.0", "127.0.0.1"])`. This will add a log that will help us figure out why they got a `NSURLErrorCannotFindHost`.
Thanks for the extra information! We'll let you know what we find out. In the mean time, I just added a new log that will provide a bit more insight from the SDK perspective: #2167. |
The ping timeout is expected. We use AWS Load balancers as the IPs for
If you want to check that you can connect to
Given that your computer is able to resolve |
Thanks for the additional information - true, the curl command also works for me. As far as I know I have no specific configuration running. I also have no tool running for simulating poor/no internet connection. I also just tried to run the apo with the release scheme (in case debug would have blocked anything) and also archived the build and distributed it as a copy app to run it like a real app, but I still immediately get an error when I fetch the products or try to restore them. I could also make a TestFlight build and share it with you if that helps - if so, would there be any other output helpful for you besides the |
Would you be able to test with 4.15.5? We released that yesterday with a change (#2167) that might give some additional information on what's going on. We already had a |
I just tried it with 4.15.5 and get the following log:
|
Interesting, let me look into that. Is this happening in the simulator, a device, or both? |
What happens if you try to make another HTTP request to some other host from that device using |
I found the issue - I didn't check the checkbox in the Signing & Capabilities -> App Sandbox -> Network -> Outgoing Connections (Client) 🙃 Sorry to bother you with that unrelated issue, I haven't implemented any mac apps before so I also haven't used any networking yet on mac - thank you for your help! Now everything works as expected! |
Awesome, glad you figured it out! |
Hi @NachoSoto the ticket was closed but the initial thread wasn't investigated, isn't it? |
This issue has been automatically locked due to no recent activity after it was closed. Please open a new issue for related reports. |
@jesus-mg-ios sorry Jesus, I missed that these were 2 slightly different errors. |
Hey @jesus-mg-ios - just checking in here. Were you able to test with that PR? (looks like it was included in the 4.15.5 release) |
Going to close this out - feel free to follow up if you're able to try the suggestion above! |
Describe the bug
We're receiving a random error on some devices
ErrorCode Code=10 "Error performing request."
, please see more in additional context.The thing is the error says that the path is satisfied. It's a little bit strange, I mean if the path is satisfied the host should be found. the source function is
init(_:dnsChecker:)
. Could be an error inside this function that makes it fail?Thanks in advance. I really appreciate your hard work.
useStoreKit2IfEnabled(false)
) (Y/N): useStoreKit2IfEnabled(false)Additional context
The text was updated successfully, but these errors were encountered: