sacOO7 / socketcluster-client-java

Native java and android client for socketcluster framework in node.js
http://socketcluster.io/
Apache License 2.0
94 stars 42 forks source link

Unauthorized error #36

Closed mastani closed 6 years ago

mastani commented 6 years ago

Hello, i'm getting this error when trying to add the library,

Could not HEAD 'https://jitpack.io/io/github/sac/SocketclusterClientJava/1.7.5/SocketclusterClientJava-1.7.5.pom'. Received status code 401 from server: Unauthorized

Can you help me ?

sacOO7 commented 6 years ago

Try 1.7.4 for now. I will look into the issue

mastani commented 6 years ago

Thanks for fast answer! But for 1.7.4 i get the same error.

Could not HEAD 'https://jitpack.io/io/github/sac/SocketclusterClientJava/1.7.4/SocketclusterClientJava-1.7.4.pom'. Received status code 401 from server: Unauthorized

sacOO7 commented 6 years ago

How are you exactly adding library as a dependency in your project?

On Jun 28, 2018 1:11 PM, "Amin Mastani" notifications@github.com wrote:

Thanks for fast answer! But for 1.7.4 i get the same error.

Could not HEAD 'https://jitpack.io/io/github/ sac/SocketclusterClientJava/1.7.4/SocketclusterClientJava-1.7.4.pom'. Received status code 401 from server: Unauthorized

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sacOO7/socketcluster-client-java/issues/36#issuecomment-400942876, or mute the thread https://github.com/notifications/unsubscribe-auth/AP8vSdmg09PzP0CSs1yzD9fTicrgqImWks5uBIjAgaJpZM4U65L- .

mastani commented 6 years ago

Same as you describe in readme,

compile ('io.github.sac:SocketclusterClientJava:1.7.4') { exclude group: 'org.json', module: 'json' }

Actually I use your library for a month now and it was ok until now.

sacOO7 commented 6 years ago

Idk what caused this problem..... I might need to reproduce it on my local

On Jun 28, 2018 1:27 PM, "Amin Mastani" notifications@github.com wrote:

Same as you describe in readme,

compile ('io.github.sac:SocketclusterClientJava:1.7.4') { exclude group: 'org.json', module: 'json' }

Actually I use your library for a month now and it was ok until now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sacOO7/socketcluster-client-java/issues/36#issuecomment-400946874, or mute the thread https://github.com/notifications/unsubscribe-auth/AP8vSQ41xOBH2dehFP7e2E57UJQDX6-hks5uBIxXgaJpZM4U65L- .

mastani commented 6 years ago

Maybe it's because you change maven settings to private ?

sacOO7 commented 6 years ago

Ok I will look into it

sacOO7 commented 6 years ago

Can you check this https://jfrog.com/knowledge-base/why-am-i-failing-to-work-with-jfrog-saas-service-with-tls-1-0-1-1/

sacOO7 commented 6 years ago

You can find my maven published artifacts here https://dl.bintray.com/sacoo7/Maven/ It's a public link and I don't think it will require authentication.

mastani commented 6 years ago

I checked the link you provided, But my Android Studio is up-to-date. I don't think it's the cause of my problem. I added jar files manually to libs/ folder for now and it's working.

sacOO7 commented 6 years ago

I will try to fix it today ...

On Jun 28, 2018 2:35 PM, "Amin Mastani" notifications@github.com wrote:

I checked the link you provided, But my Android Studio is up-to-date. I don't think it's the cause of my problem. I added jar files manually to libs/ folder for now and it's working.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sacOO7/socketcluster-client-java/issues/36#issuecomment-400966063, or mute the thread https://github.com/notifications/unsubscribe-auth/AP8vSZgNng8WBBFXXmcDv6hUwnhrvFeuks5uBJxPgaJpZM4U65L- .

mastani commented 6 years ago

Thank you, and thanks for your awesome project by the way.

sacOO7 commented 6 years ago

Please start the repo 😅 if you like it .... Also I am open to new suggestions. I am planning to release some major updates in next release...

On Jun 28, 2018 2:51 PM, "Amin Mastani" notifications@github.com wrote:

Thank you, and thanks for your awesome project by the way.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sacOO7/socketcluster-client-java/issues/36#issuecomment-400970997, or mute the thread https://github.com/notifications/unsubscribe-auth/AP8vSVnqdKDw_VlYnQZIH92CDxcvf1s9ks5uBKAugaJpZM4U65L- .

sacOO7 commented 6 years ago

Hi @mastani , I tried yesterday to add latest version as a dependency in gradle, but it is working for me. Can you please check it again? Maybe on build pipeline or on your friends laptop?

sacOO7 commented 6 years ago

Still I will add public artifact link in the README. Please let me know about above...

mastani commented 6 years ago

It is working now, checked for 1.7.4 and 1.7.5. I tried just now and it's fine.

Thanks for your time!

sacOO7 commented 6 years ago

Ok, then I will be closing this issue .....

hosseinhelali commented 1 year ago

Hi I am getting this error when trying to add library too

authentication failed for https://repo.spring.io/plugins-release/io/github/sac/SocketclusterClientJava/1.7.4/SocketclusterClientJava-1.7.4.pom, status: 401 Unauthorized

Maven dependency:

        <dependency>
            <groupId>io.github.sac</groupId>
            <artifactId>SocketclusterClientJava</artifactId>
            <version>1.7.5</version>
        </dependency>