Spring-cloud-gateway: retry POST is not working

Created on 10 Jul 2019  路  1Comment  路  Source: spring-cloud/spring-cloud-gateway

Most helpful comment

To work around the problem, you need to add routeId to the retry configuration. It must match the routeId.

spring:
  cloud:
    gateway:
      routes:
      - id: greeting-service
        uri: lb://greeting-service
        predicates:
        - Path=/greeting-service/**
        filters:
        - name: RewritePath
          args:
            regexp: /greeting-service/(?<path>.*)
            replacement: /$\{path}
        - name: Retry
          args:
            routeId: greeting-service
            methods: GET,POST

>All comments

To work around the problem, you need to add routeId to the retry configuration. It must match the routeId.

spring:
  cloud:
    gateway:
      routes:
      - id: greeting-service
        uri: lb://greeting-service
        predicates:
        - Path=/greeting-service/**
        filters:
        - name: RewritePath
          args:
            regexp: /greeting-service/(?<path>.*)
            replacement: /$\{path}
        - name: Retry
          args:
            routeId: greeting-service
            methods: GET,POST
Was this page helpful?
0 / 5 - 0 ratings

Related issues

aresa7796 picture aresa7796  路  6Comments

larva2333 picture larva2333  路  6Comments

pravinkumarb84 picture pravinkumarb84  路  7Comments

manishonline picture manishonline  路  3Comments

xiaozhiliaoo picture xiaozhiliaoo  路  4Comments