Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-2816

Prod: Offering sync fails when calling to the product service with 401

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 2024-09-04 - API
    • None
    • None
    • None

      Stacktrace:

      2024-08-14 02:02:02,912 WARN  [com.red.swa.con.ser.OfferingSyncService] (executor-thread-446) {parentId=3f963b87671ec957, sampled=true, spanId=fb19a97b4fd9f7bd, traceId=0e51a05102ae8caf66f2cd50acca46b1} syncResult=FAILED (Failed to fetch and/or sync) for offeringSku="MW02084F3" in offeringSyncTimeMillis=81.
      2024-08-14 02:02:02,913 ERROR [io.sma.rea.mes.provider] (executor-thread-446) {parentId=3f963b87671ec957, sampled=true, spanId=fb19a97b4fd9f7bd, traceId=0e51a05102ae8caf66f2cd50acca46b1} SRMSG00200: The method com.redhat.swatch.contract.service.OfferingSyncTaskConsumer#consumeFromTopic has thrown an exception: com.redhat.swatch.contract.exception.ServiceException: Unable to retrieve upstream offeringSku=MW02084F3
      	at com.redhat.swatch.contract.product.UpstreamProductData.offeringFromUpstream(UpstreamProductData.java:133)
      	at com.redhat.swatch.contract.service.OfferingSyncService.getUpstreamOffering(OfferingSyncService.java:134)
      	at com.redhat.swatch.contract.service.OfferingSyncService.syncOffering(OfferingSyncService.java:115)
      

      The problem is that we're setting the PRODUCT_URL to the stage environment by default and we don't override it to use the one from production as we did in the subscription sync service.

              jcarvaja@redhat.com Jose Carvajal Hilario
              jcarvaja@redhat.com Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: