Authorization Error (403) Appears while Using Aspose.Slides for Java

I have used licenced Aspose slides library in Java. I was working fine till last week. Now I am facing some issues in that: mainly Authentication error. I tried multiple repository in pom but each time it gave some error. I am posting 3 scenarios which I tried along with Error it is producing.

  1. With pom entry
<repositories>
  <repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://repository.aspose.com/repo/</url>
  </repository>
</repositories>

<dependency>
  <groupId>com.aspose</groupId>
  <artifactId>aspose-slides</artifactId>
  <version>19.2</version>
  <classifier>jdk16</classifier>
</dependency>

Error We are getting:

[ERROR] Failed to execute goal on project video: Could not resolve dependencies for project : Failed to collect dependencies at com.aspose:aspose-slides:jar:jdk16:19.2: Failed to read artifact descriptor for com.aspose:aspose-slides:jar:jdk16:19.2: Could not transfer artifact com.aspose:aspose-slides:pom:19.2 from/to AsposeJavaAPI (https://repository.aspose.com/repo/): authorization failed for https://repository.aspose.com/repo/com/aspose/aspose-slides/19.2/aspose-slides-19.2.pom, status: 403 Forbidden

2 . With pom entry

<repositories>
  <repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://artifact.aspose.com/repo/</url>
  </repository>
</repositories>

<dependency>
  <groupId>com.aspose</groupId>
  <artifactId>aspose-slides</artifactId>
  <version>19.2</version>
  <classifier>jdk16</classifier>
</dependency>

Error We are getting:

[ERROR] Failed to execute goal on project video: Could not resolve dependencies for project : Failed to collect dependencies at com.aspose:aspose-slides:jar:jdk16:19.2: Failed to read artifact descriptor for com.aspose:aspose-slides:jar:jdk16:19.2: Could not transfer artifact com.aspose:aspose-slides:pom:19.2 from/to AsposeJavaAPI (https://artifact.aspose.com/repo/): transfer failed for https://artifact.aspose.com/repo/com/aspose/aspose-slides/19.2/aspose-slides-19.2.pom: Certificate for <artifact.aspose.com> doesn’t match any of the subject alternative names: [repository-qa.aspose.com]

3 . With pom entry

<repositories>
  <repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/</url>
  </repository>
</repositories>

<dependency>
  <groupId>com.aspose</groupId>
  <artifactId>aspose-slides</artifactId>
  <version>19.2</version>
  <classifier>jdk16</classifier>
</dependency>

Error We are getting:

[ERROR] Failed to execute goal on project video: Could not resolve dependencies for project : Failed to collect dependencies at com.aspose:aspose-slides:jar:jdk16:19.2: Failed to read artifact descriptor for com.aspose:aspose-slides:jar:jdk16:19.2: Could not transfer artifact com.aspose:aspose-slides:pom:19.2 from/to AsposeJavaAPI (https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/): authorization failed for https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-slides/19.2/aspose-slides-19.2.pom, status: 403 Forbidden

Please Provide some assistance as soon as possible. Any help would be appreciated.

@Anishek,
Welcome to our community! Thank you for the issue description.

This is a known issue recently. Please carefully read this thread on Aspose.Slides forum. We apologize for any inconvenience.

@Anishek

Our repository URL is Aspose Repository Browser /java/repo/. This is only accessible through Maven our Gradle Clients. You can explore our repository through https://repository.aspose.com/.

Could not transfer artifact com.aspose:aspose-slides:pom:19.2 from/to AsposeJavaAPI (Aspose Repository Browser /java/repo/): authorization failed for

Kindly flush DNS cache for your machine and then try again. This issue will be resolved. If you are using GitHub Actions. Please add this step in you workflow.

  • name: Clear DNS Cache
    run: |
    sudo systemd-resolve --flush-caches

You can see full GitHub Actions yml file at https://github.com/farooqsheikhpk/java-hello-world-maven/blob/master/.github/workflows/maven.yml.

Related GitHub Log: https://snipboard.io/UW751n.jpg

Feel free to reach me for any issue related to it. Thanks.

@farooq.sheikh

This solution is not working for us as we have Azure pipelines setup for building and deployment and each time maven dependencies gets downloaded directly from repository url . After trying the command which you suggested im git hub , I got error saying

Unexpected value ‘name’

Please refer the below attached screenshot for changes we tried

image.png (4.2 KB)

Can you please suggest any other alternative?
What about migration to new server that was going on ? By when can it be expected to be completed ?

@Anishek,
I’ve requested our developers to inform the state of our repositories. We will let you know as soon as possible.

@Anishek

Please share your Azure VM IP Address through which you are accessing repository.aspose.com. I will request our hosting team to do further investigation on it.

Feel free to reach us for any issue related to it. Thanks

@Anishek

Did you get chance to run your Azure pipelines again? My Azure pipeline is working with Aspose Repository - Aspose Repository Browser /java/repo/.

Feel free to reach us for any issue related to it.

1 Like

@farooq.sheikh

Today again getting some error with Aspose

Failed to execute goal on project video: Could not resolve dependencies for project com.aq.springboot.ca.video:video:jar:0.0.1-SNAPSHOT: Could not find artifact com.aspose:aspose-slides:jar:jdk16:19.2 in AsposeJavaAPI (Aspose Repository Browser /java/repo/) → [Help 1]

Can you please me in resolving this ?

@Anishek,
Please share a simple project that reproduces the error you are experiencing.

I am good with this issue now . This issue was resolved .

@Anishek,
We are glad to know that the issue has already resolved on your end. Thank you for using Aspose.Slides.

@Anishek

May I know how did you resolved this issue?

Thanks!!

@ramesh676,
Thank you for contacting support. Please describe the issue you are experiencing with environment details in a new forum thread. We will do our best to resolve it.