• Resolved rproenca

    (@rproenca)


    Olá @claudiosanches, bom dia.

    O plugin estava funcionando normalmente até ontem (nova API) quando parou de retornar qualquer método de entrega ao tentar calcular frete no carrinho.

    Eu estava usando a vers?o 4.1.4. Hoje pela manh? atualizei para a vers?o 4.1.6, mas o problema persiste.

    Segue abaixo o log, com destaque para:

    Failed to get shipping cost
    400 Bad Request
    {"msgs":["PRC-101: O valor do(s) parametro(s) psObjeto é(s?o) inválido(s). "],"date":"2023-09-27T07:14:31","path":"uri=/preco/v1/nacional/03220"}
    09-27-2023 @ 07:14:31 - Getting shipping cost for product code: 03220
    09-27-2023 @ 07:14:31 - Token already saved in transients, returning saved token!
    09-27-2023 @ 07:14:31 - Failed to get shipping cost: Array
    (
        [headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Wed, 27 Sep 2023 10:14:31 GMT
                        [content-type] => application/json
                        [vary] => Array
                            (
                                [0] => Origin
                                [1] => Access-Control-Request-Method
                                [2] => Access-Control-Request-Headers
                            )
    
                        [x-ratelimit-remaining] => 164
                        [x-ratelimit-requested-tokens] => 1
                        [x-ratelimit-burst-capacity] => 165
                        [x-ratelimit-replenish-rate] => 150
                        [x-gtw-uri-template] => /v1/nacional/{coProduto}
                        [x-gtw-cluster] => prod2-bsb
                        [x-gtw-user] => [REDACTED]
                        [x-gtw-pfl] => PJ
                        [x-gtw-service-id] => preco
                        [x-gtw-api-time] => 5
                        [strict-transport-security] => max-age=15724800; includeSubDomains
                        [set-cookie] => LBprdExt1=684195850.47873.0000; path=/; Httponly; Secure
                    )
    
            )
    
        [body] => {"msgs":["PRC-101: O valor do(s) parametro(s) psObjeto é(s?o) inválido(s). "],"date":"2023-09-27T07:14:31","path":"uri=/preco/v1/nacional/03220"}
        [response] => Array
            (
                [code] => 400
                [message] => Bad Request
            )
    
        [cookies] => Array
            (
                [0] => WP_Http_Cookie Object
                    (
                        [name] => LBprdExt1
                        [value] => 684195850.47873.0000
                        [expires] => 
                        [path] => /
                        [domain] => api.correios.com.br
                        [port] => 
                        [host_only] => 1
                    )
    
            )
    
        [filename] => 
        [http_response] => WP_HTTP_Requests_Response Object
            (
                [response:protected] => WpOrg\Requests\Response Object
                    (
                        [body] => {"msgs":["PRC-101: O valor do(s) parametro(s) psObjeto é(s?o) inválido(s). "],"date":"2023-09-27T07:14:31","path":"uri=/preco/v1/nacional/03220"}
                        [raw] => HTTP/1.1 400 Bad Request
    Date: Wed, 27 Sep 2023 10:14:31 GMT
    Content-Type: application/json
    Transfer-Encoding: chunked
    Connection: close
    Vary: Origin
    Vary: Access-Control-Request-Method
    Vary: Access-Control-Request-Headers
    X-RateLimit-Remaining: 164
    X-RateLimit-Requested-Tokens: 1
    X-RateLimit-Burst-Capacity: 165
    X-RateLimit-Replenish-Rate: 150
    x-gtw-uri-template: /v1/nacional/{coProduto}
    x-gtw-cluster: prod2-bsb
    x-gtw-user: PRIVATEUSER
    x-gtw-pfl: PJ
    x-gtw-service-id: preco
    x-gtw-api-time: 5
    Strict-Transport-Security: max-age=15724800; includeSubDomains
    Set-Cookie: LBprdExt1=684195850.47873.0000; path=/; Httponly; Secure
    
    {"msgs":["PRC-101: O valor do(s) parametro(s) psObjeto é(s?o) inválido(s). "],"date":"2023-09-27T07:14:31","path":"uri=/preco/v1/nacional/03220"}
                        [headers] => WpOrg\Requests\Response\Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Wed, 27 Sep 2023 10:14:31 GMT
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => application/json
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => Origin
                                                [1] => Access-Control-Request-Method
                                                [2] => Access-Control-Request-Headers
                                            )
    
                                        [x-ratelimit-remaining] => Array
                                            (
                                                [0] => 164
                                            )
    
                                        [x-ratelimit-requested-tokens] => Array
                                            (
                                                [0] => 1
                                            )
    
                                        [x-ratelimit-burst-capacity] => Array
                                            (
                                                [0] => 165
                                            )
    
                                        [x-ratelimit-replenish-rate] => Array
                                            (
                                                [0] => 150
                                            )
    
                                        [x-gtw-uri-template] => Array
                                            (
                                                [0] => /v1/nacional/{coProduto}
                                            )
    
                                        [x-gtw-cluster] => Array
                                            (
                                                [0] => prod2-bsb
                                            )
    
                                        [x-gtw-user] => Array
                                            (
                                                [0] => PRIVATEUSER
                                            )
    
                                        [x-gtw-pfl] => Array
                                            (
                                                [0] => PJ
                                            )
    
                                        [x-gtw-service-id] => Array
                                            (
                                                [0] => preco
                                            )
    
                                        [x-gtw-api-time] => Array
                                            (
                                                [0] => 5
                                            )
    
                                        [strict-transport-security] => Array
                                            (
                                                [0] => max-age=15724800; includeSubDomains
                                            )
    
                                        [set-cookie] => Array
                                            (
                                                [0] => LBprdExt1=684195850.47873.0000; path=/; Httponly; Secure
                                            )
    
                                    )
    
                            )

    Agrade?o antecipadamente pela ajuda.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘“PRC-101: O valor do(s) parametro(s) psObjeto é(s?o) inválido(s). “’ is closed to new replies.