Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, jose.

Asked: May 27, 2023 - 1:44 am UTC

Last updated: May 29, 2023 - 4:01 am UTC

Version: 23

Viewed 1000+ times

You Asked

Hola! en Apex 23.1

Estoy fallando al intentar ejecutar un método GET luego de crear desde Componentes Compartidos >> Orígenes de Datos una conexión a un servicio web http (no seguro) público.

El método GET lo pruebo desde la opción de edición. Y lo he probado también desde un botón en mi página.

Aclaro que los servicios https que he creado me funcionan correctamente.

Necesito saber si hay que realizar alguna configuración para estos casos..
si me pueden aportar alguna documentación..
se los agradezco!!


Estoy trabajando en https://apex.oracle.com/pls/apex/r/apex/workspace


Dejo el error:

is_internal_error: false
ora_sqlcode: -403
ora_sqlerrm: Forbidden
component.type: APEX_APPLICATION_PAGE_PROCESS
component.id: 37623776800238671091
component.name: Nuevo
error_backtrace:
----- PL/SQL Call Stack -----
object line object
handle number name
0x3709919170 590 package body APEX_230100.WWV_FLOW_INVOKE_API_PROCESS.INVOKE_API_REST
0x3709919170 639 package body APEX_230100.WWV_FLOW_INVOKE_API_PROCESS.INVOKE_API_PROCESS
0x3256fedff0 1295 package body APEX_230100.WWV_FLOW_PROCESS_NATIVE.EXECUTE_PROCESS
0x35e89acdf8 3443 package body APEX_230100.WWV_FLOW_PLUGIN.EXECUTE_PROCESS
0x34524835b0 189 package body APEX_230100.WWV_FLOW_PROCESS.PERFORM_PROCESS
0x34524835b0 479 package body APEX_230100.WWV_FLOW_PROCESS.PERFORM
0x38de05fa70 4233 package body APEX_230100.WWV_FLOW.ACCEPT
0x38bdd2eaf0 2 anonymous block

and Connor said...

(Estoy usando el traductor de Google para escribir español aquí, así que espero que tenga sentido.)

http 403 significa que su solicitud se formuló correctamente, pero el servidor web con el que está hablando rechazó la solicitud.
Esto significa que requiere algún tipo de autorización (nombre de usuario/contraseña) o tiene reglas para bloquear solicitudes de ciertas fuentes. 403 significa que su código probablemente esté bien, pero deberá hablar con el propietario del servicio web solicitado para ver por qué lo están bloqueando.


English:

http 403 means your request was correctly formed but the webserver you are talking to has refused the request.
This means either it requires some sort of authorisation (username/password) or it has rules to block requests from certain sources. 403 means your code is probably fine, but you will need to speak to the owner of the requested webservice to see why they are blocking you


Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library