Code Monkey home page Code Monkey logo

Comments (32)

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

Ok, are you comfortable running the app in Xcode? That way I can get useful logs that might help with the issue. Alternatively, you can look into the console logs and filter by Swiftcord, but it tends to get drowned in the flood of logs.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

@Melonking906 joining the discord server here would allow me to respond to you faster, important for debugging!

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

I'll close the issue in a few day's time if there's no more input from @Melonking906, with the assumption the issue is now resolved.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

No more input was received from the OP - closing the issue.

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Log:
Error when receiving: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)

Perhaps it is caused by proxy. Maybe add custom proxy address setting would solve this, because of the GFW. I think that the app network traffic default not through ClashX or other proxy app.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

Yeah, this log happens all the time when the internet connection isn't available. Could you see if it works without your proxy enabled?

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Yeah, this log happens all the time when the internet connection isn't available. Could you see if it works without your proxy enabled?

No, it couldn't work.

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Yeah, this log happens all the time when the internet connection isn't available. Could you see if it works without your proxy enabled?

My location is in China, so I even couldn't connect to the Discord server by official client.

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Yeah, this log happens all the time when the internet connection isn't available. Could you see if it works without your proxy enabled?

And I read the proxy log. It said it went through the proxy. (Now the proxy is enabled.) I think it shouldn't be proxy's wrong.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

Ok, I see. What proxy are you using, and does it work if you use the discord client in a browser?

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Ok, I see. What proxy are you using, and does it work if you use the discord client in a browser?

I'm using ClashX and the subscription is from cloud.faster.buzz. It works fine in discord client using Safari.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

Screenshot 2022-05-27 at 2 58 16 PM

Could you use the built in proxy settings in macOS to connect to your proxy? It might work that way.

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Ok, I see. What proxy are you using, and does it work if you use the discord client in a browser?

I have seen this kind of problem before while using Infuse. Perhaps it is caused by ClashX. Because it also worked fine if I turned off ClashX or using other proxy app.

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024
Screenshot 2022-05-27 at 2 58 16 PM

Could you use the built in proxy settings in macOS to connect to your proxy? It might work that way.

My current macOS setting had enabled proxy.

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024
Screenshot 2022-05-27 at 2 58 16 PM

Could you use the built in proxy settings in macOS to connect to your proxy? It might work that way.

Maybe I can try to use other proxy app.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

Normally, native apps should follow the system proxy setting, but I might be wrong. I'll keep this issue open for input from other contributors.

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Normally, native apps should follow the system proxy setting, but I might be wrong. I'll keep this issue open for input from other contributors.

Ok, thank you, and I'm going to try to use other proxy app. If it worked, I'll tell you.

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Normally, native apps should follow the system proxy setting, but I might be wrong. I'll keep this issue open for input from other contributors.

I'm wrong, it was not the issue of ClashX. I changed another proxy app call QV2ray, it still stuck on Establishing Gateway connection.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

Ok. Firstly what swiftcord version are you using? Next, are there any interesting thing in the log that might tell us why it can't open a web socket connection?

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Ok. Firstly what swiftcord version are you using? Next, are there any interesting thing in the log that might tell us why it can't open a web socket connection?

It’s 0.4.0. And I only found the error I showed before. Let me check what is in front of that error.

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Ok. Firstly what swiftcord version are you using? Next, are there any interesting thing in the log that might tell us why it can't open a web socket connection?

image

I don't know which log is useful

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

Could you run it from Xcode? That would give better logs. Also the logs that aren't errors are important too, so do not just filter by errors.

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Could you run it from Xcode? That would give better logs. Also the logs that aren't errors are important too, so do not just filter by errors.

Ok, I'm fetching dependencies.

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Could you run it from Xcode? That would give better logs. Also the logs that aren't errors are important too, so do not just filter by errors.

It's a little bit hard for me to fetch dependencies I think. I don't know why the package manager is that slow.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

Could it be because of your proxy? It fetches in a few seconds for me

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Could it be because of your proxy? It fetches in a few seconds for me

It should be the proxy problem. Never solved. The same when I was programming iOS app.

from swiftcord.

0ihsan avatar 0ihsan commented on May 12, 2024

I am proxying my macOS network through my iPhone and having the same issue.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

@EvanLuo42 As I'm unable to reproduce both your situation and this bug, I can't work on a potential fix. I'll mark this won't fix for now, but if someone can provide more detailed logs on what's going on or tell me how I can reproduce it, I'll take a look at it.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

@0ihsan Hi! can i get more details like the version of swiftcord youre using, as well as logs relevant to the issue?

from swiftcord.

EvanLuo42 avatar EvanLuo42 commented on May 12, 2024

Sorry, I didn’t explain in a clear way. I’m going to explain it more to help you setup my network environment. I’ll send you a email with my proxy address and how to connect.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

@EvanLuo42 Ah no worries. You can send it to my GitHub email, or thru a Discord DM.

from swiftcord.

cryptoAlgorithm avatar cryptoAlgorithm commented on May 12, 2024

@EvanLuo42 Lets move this to a discussion so I can close this issue.

from swiftcord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.