Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing Push Notification #15

Open
entrustca opened this issue Mar 12, 2019 · 7 comments
Open

Testing Push Notification #15

entrustca opened this issue Mar 12, 2019 · 7 comments

Comments

@entrustca
Copy link

Good day,

I setup everything in the guide for Push Notification , I used the sample pl/sql script:

declare
l_rest_return clob;
begin
l_rest_return := apex_web_service.make_rest_request(
p_url => 'https://localhost:3050/push' -- My custom REST endpoint (1)
, p_http_method => 'GET'
, p_parm_name => apex_util.string_to_table('title:body') -- Notification structure (2)
, p_parm_value => apex_util.string_to_table('Hey you:Go back to APEX now!') -- Notification Content (3)
);
end;

And get the following error:

Error report -
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1130
ORA-29259: end-of-input reached
ORA-06512: at "APEX_180200.WWV_FLOW_WEB_SERVICES", line 1017
ORA-06512: at "APEX_180200.WWV_FLOW_WEB_SERVICES", line 1523
ORA-06512: at "APEX_180200.WWV_FLOW_WEBSERVICES_API", line 369
ORA-06512: at line 4
29273. 00000 - "HTTP request failed"
*Cause: The UTL_HTTP package failed to execute the HTTP request.
*Action: Use get_detailed_sqlerrm to check the detailed error message.
Fix the error and retry the HTTP request.

Please help me to solve this issue.

Regards

@vincentmorneau
Copy link
Owner

Have you set up and launched your node service?

@entrustca
Copy link
Author

Yes I did, if I put POST instead of GET it finished normal but I don't see any notification. I also setup the server in my laptop but I received and ORA no TNS Listener message. Please let me know what else I can do on my laptop and server.

Thanks

@entrustca
Copy link
Author

This is the error when I run it using my laptop with nodejs:

ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1722
ORA-12541: TNS:no listener
ORA-06512: at line 1
29273. 00000 - "HTTP request failed"
*Cause: The UTL_HTTP package failed to execute the HTTP request.
*Action: Use get_detailed_sqlerrm to check the detailed error message.
Fix the error and retry the HTTP request.

@entrustca
Copy link
Author

I setup a local machine with centos and the same error continues:

SQL> declare
l_rest_return clob;
begin
l_rest_return := apex_web_service.make_rest_request(
p_url => 'http://localhost:3050/push' -- My custom REST endpoint (1)
, p_http_method => 'GET'
, p_parm_name => apex_util.string_to_table('title:body') -- Notification structure (2)
, p_parm_value => apex_util.string_to_table('Hey you:Go back to APEX now!') -- Notification Content (3)
);
end; 2 3 4 5 6 7 8 9 10
11 /
declare
*
ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1369
ORA-29259: end-of-input reached
ORA-06512: at "APEX_180100.WWV_FLOW_WEB_SERVICES", line 1011
ORA-06512: at "APEX_180100.WWV_FLOW_WEB_SERVICES", line 1517
ORA-06512: at "APEX_180100.WWV_FLOW_WEBSERVICES_API", line 369
ORA-06512: at line 4

Please let me know what to look.

Regards

@APXUSER
Copy link

APXUSER commented Jul 5, 2019

Dears,
I have the same prob. Did you save it ?
Database 11g Release 2. APEX 18.1

Thanks in advance.

ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1369
ORA-29259: end-of-input reached
ORA-06512: at "APEX_180100.WWV_FLOW_WEB_SERVICES", line 1011
ORA-06512: at "APEX_180100.WWV_FLOW_WEB_SERVICES", line 1517
ORA-06512: at "APEX_180100.WWV_FLOW_WEBSERVICES_API", line 369
ORA-06512: at line 4

@entrustca
Copy link
Author

Hello I set everything as the tutorial but it looks that it does not connect to the firebase database I put the firebase json but it does not connect do I need to do an extra setup in firebase? Thanks

@vincentmorneau
Copy link
Owner

Please post your node server code. Can't help you without this information...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants