Exception handling on "API down for maintenance"
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 20/100
Direção de pesquisa
Comece pela issue vinculada do Promregator, pelas CAPI release notes e por full-error.txt para entender a resposta de manutenção que não é JSON e a CorruptedFrameException resultante. A issue não menciona arquivos do repositório nem testes; o trabalho só estará concluído quando o projeto decidir onde essa falha deve ser tratada e definir o tratamento esperado da exceção.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Documented in the case of https://github.com/promregator/promregator/issues/96#issuecomment-490585118, Promregator (a consumer of cf-java-client) encountered the situation that the CF Cloud Controller did not respond with a proper response, but only returned the ASCII string
API down for maintenance
instead of the corresponding JSON.
I stumbled over https://github.com/cloudfoundry/capi-release/releases/tag/1.77.0, where the second line in the highlights suggests that this is a standard behavior of the platform (and also might have reported that error without providing the appropriate HTTP status code of 503).
Based on the logs, it seems that cf-java-client today reacts to just forward an exception of type io.netty.handler.codec.CorruptedFrameException. It is clear that the corresponding request cannot be fulfilled and some sort of error reporting/exception handling must take place in this case.
What is unclear to me is who should be in charge of handling such a kind of exception. I doubt that a consumer application should catch exceptions raised by netty due to a decoding issue. Moreover, the situation appears to be (perhaps not a desired situation, but still) a response that may happen from time to time. One may also argue whether this is covered by the contract.
What is your opinion about all this? Should the consumer of cf-java-client handle this kind of failure by catching io.netty.handler.codec.CorruptedFrameException?
- Linguagem predominante
- Java
- Estrelas
- 334
- Forks
- 319
- Merge médio
- 7d 11h
- PRs com merge (30d)
- 3
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de cloudfoundry/cf-java-client
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
cloudfoundry/cf-java-client#1374 ·
-
Integration tests fail: test-service-broker.jar incompatible with java-buildpack v5 (JDK 17 default)Aberta
Dificuldade 2/5 Meio dia Facilidade para iniciantes 74/100
cloudfoundry/cf-java-client#1344 · 1 comentário ·
-
Execute integration tests in Github ActionsTalvez já em andamento @ZPascal assumiu há 10 dias. Aberta
cloudfoundry/cf-java-client#1380 · 1 reação · 2 responsáveis ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
cloudfoundry/cf-java-client#1373 ·
-
Update to latest CAPI Version 1.240.0Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
cloudfoundry/cf-java-client#1370 ·
Todas as issues de cloudfoundry/cf-java-client
Issues semelhantes
-
BoxAttachmentMulti parsing leaks IOException / ArrayIndexOutOfBoundsException on malformed content instead of IllegalArgumentExceptionTalvez já em andamento @Kshot3000 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
ergoplatform/ergo-appkit#272 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
utopia-rise/godot-jvm#1004 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
spring-projects/spring-grpc#442 ·