Is everything ok with your licensing services?

Our aspose-words-cloud container (aspose-words-cloud:25.4) just fell back to a trial license. Here’s what the logs show when I restart it:

LicenseInitializer:InitLicense() - Failed to initialize metered license for Aspose.Words
System.InvalidOperationException: Authentication failed.
   at w.Fu(Object d)
   at w.ou(Object d)
   at w.Xr(w d, B v)
   at w.Ng()
   at w.hm(Boolean d)
   at w.Fu(Object d)
   at w.ou(Object d)
   at w.mg()
   at w.Eg(Object d, UInt32 v)
   at w.hm(Boolean d)
   at w.Uu(Object[] d, Type[] v, Type[] c, Object[] t)
   at w.Mu(Stream d, String v, Object[] c, Type[] t, Type[] n, Object[] B)
   at w.Xu(Stream d, String v, Object[] c)
   at w.Ju(Stream d, String v, Object[] c)
   at Aspose.Words.Metered.SetMeteredKey(String publicKey, String privateKey)
   at Aspose.Words.Cloud.LicenseInitializer.InitMeteredLicense(String , String)
LicenseInitializer:InitLicense() - Failed to initialize metered license for Aspose.Barcode
System.InvalidOperationException: Authentication failed.
   at (Object )
   at .(Object )
   at e( ,  )
   at .()
   at (Boolean )
   at (Object )
   at .(Object )
   at .()
   at .(Object , UInt32 )
   at (Boolean )
   at .(Object[] , Type[] , Type[] , Object[])
   at .(Stream , String , Object[] , Type[], Type[] , Object[] )
   at .(Stream , String , Object[] )
   at .(Stream , String , Object[] )
   at Aspose.BarCode.Metered.SetMeteredKey(String publicKey, String privateKey)
   at Aspose.Words.Cloud.LicenseInitializer.InitMeteredLicense(String , String)

@juro

It seems that you are experiencing issues with the metered licensing for Aspose.Words, as indicated by the “Authentication failed” error in your logs. This issue can occur for several reasons, and here are some steps you can take to troubleshoot and resolve it:

  1. Check Java Version: If you are using Aspose.Words for Java, ensure that you are running Java version 8u101 or above. An outdated Java version can lead to licensing issues.

  2. Verify License Keys: Double-check that the public and private keys you are using for the metered license are correct. If you suspect that the keys might be incorrect, you can test them using a simple code snippet to see if they work properly.

  3. Test License Initialization: You can use the following code snippet to test the license initialization:

    import com.aspose.words.*;
    
    public class LicenseTest {
        public static void main(String[] args) {
            try {
                Metered metered = new Metered();
                metered.setMeteredKey("YourPublicKey", "YourPrivateKey");
                Document doc = new Document("path/to/your/document.docx");
                System.out.println("License applied successfully.");
            } catch (Exception e) {
                System.out.println("Error setting license: " + e.getMessage());
            }
        }
    }
    
  4. Contact Support: If the problem persists after verifying the above steps, consider reaching out to Aspose support with your license keys (via private message) for further investigation. They can check if there are any issues with your license on their end.

  5. Review Documentation: Make sure to review the official Aspose documentation for any updates or changes regarding licensing that might affect your implementation.

By following these steps, you should be able to identify and resolve the licensing issue you are facing. If you need further assistance, feel free to ask!

Sources:
[1]: Provided Metered License doesn’t work - “Authentication failed” error for Aspose.Words

Thanks for your response, dear bot. But it’s not the case.

We apologize for the inconvenience. The team responsible for this is already working on it.