Find

Article
· 6 hr ago 2m read

"Os Erros HTTP Ocultos" (Por trás do IIS)

Você envia uma requisição HTTP e recebe de volta um erro HTTP, mas com uma página de erro HTML que você não esperava... o que está acontecendo? 🤔

Especificamente, por exemplo: talvez você tenha tentado ler um recurso FHIR (ex: /Patient/123) e recebeu uma página de erro 404, embora com outros IDs de pacientes você receba o payload do recurso normalmente — então "a página" definitivamente existe... por que você estaria recebendo uma página de erro 404? 🙄

A resposta para essas perguntas está relacionada ao comportamento do servidor web IIS na forma como ele lida com erros.

O IIS possui 3 opções para exibir erros:

  • Sempre mostrar apenas páginas de erro personalizadas
  • Sempre mostrar erros detalhados do servido
  • Para requisições locais, mostrar erros detalhados; mas para requisições remotas, mostrar páginas de erro personalizadas.

Esta última opção é mais segura (do que sempre mostrar erros detalhados) porque, às vezes, os detalhes do erro podem expor informações internas que você não deseja que usuários externos visualizem. Por isso, este é o padrão do IIS.

No entanto, isso significa que, se você estiver testando contra um servidor remoto, os erros reais estarão ocultos para você. Portanto, você precisaria alterar essa configuração para "Erros detalhados" (pelo menos durante as fases de depuração e assumindo que você está considerando o acesso externo e, talvez, limitando-o).

Veja mais detalhes sobre essa configuração em um artigo IIS relacionado (e você pode consultar esta seção relacionada em nossa documentação que discute o assunto).

O exemplo específico de FHIR que mencionei é um caso interessante, pois um erro 404 poderia significar simplesmente que um recurso FHIR específico não foi encontrado (o ID que você tentou ler não está no repositório), e não que você tem algum problema no servidor ("página não encontrada").

Por exemplo, se você conseguir visualizar o erro detalhado, verá algo assim:

Mas, sem o erro detalhado, você receberia apenas uma página de erro personalizada, como esta:

E isso pode ser enganoso, portanto, mantenha essa configuração do IIS em mente.

Discussion (0)1
Log in or sign up to continue
Question
· 6 hr ago

How the installed IPM package can know where it were installed?

Hi developers!

There is a very neat variable in IPM ${ipmdir} that lets packages be installed on a particular IRIS server and ensures that the data and resources they bring don't mess around as ${ipmdir} variable during the installation transforms into:

iris installation dir/ipm/package_name/version/whatever_you_install_here

It is very convenient, e.g., to bring some data and resource files that can be useful during the installation setup, e.g., via FILECOPY. Indeed, suppose you bring some csv_file, e.g. titanic.csv via FILECOPY as:

<FileCopy Name="data/titanic.csv" Target="${ipmdir}data/titanic.csv"/>

or even the whole folder of data in the source code repo into the package:

<FileCopy Name="data/" Target="${ipmdir}data/"/>

And in the case of Iris in Docker it resides in:

/usr/irissys/ipm/package_name/1.0.0/data/titanic.csv

This is all great, but is there any way for the installed code to determine the location of the data files? It'd be neat to let the installed app know somehow where is the data that came with it? Could it be the method in the IPM client that will resolve ${ipmdir} for the app? 

Or at least, it'd be great to let it be used on module.xml level where ${ipmdir} is supposed to be used, e.g., to be passed to an invoke method as an argument. But the issue is that it looks like <Arg></Arg> element expects literals only, but not parameters? Filed the issue already.

Discussion (0)1
Log in or sign up to continue
Question
· 7 hr ago

China large stealth Flying Wing Aircraft

China large stealth Flying Wing Aircraft

China’s new ‘J-36’: Is the dominance of Western air forces about to end?

 In December 2024, China chose a different path to demonstrate its military might. While the US keeps its secret projects under wraps for years, China shocked the world by flying its new Next-Gen Stealth Flying Wing aircraft in the open sky in front of everyone.

Does the J-36 have a global answer?

 Named ‘J-36’ by experts, this aircraft is a huge, fast and stealth platform.Most shockingly, no western air force currently has an active operational aircraft like it. This reflects the leap forward in China’s aviation industry, where it is now building its own futuristic technology rather than copying Soviet designs.

Three-engine mystery: Why is it so powerful?

 https://aitrendsphere.com/china-large-stealth-flying-wing-aircraft-2/

Discussion (0)1
Log in or sign up to continue
Discussion (0)1
Log in or sign up to continue
Question
· 13 hr ago

Luggage Storage in Paddington Station London

Our luggage storage service near Paddington is designed for convenience and safety. We provide a trusted space where your bags are monitored and kept secure, allowing you to move around freely. With affordable daily rates and an easy drop-off process, storing your luggage with us is a stress-free option. Whether you need storage for a few hours or an entire day, we make travel easier.

Discussion (0)1
Log in or sign up to continue