abap nieconn_refused: Problem while recieving an answer from an external server












0















I am trying to use my SAP system as a client and to communicate with an external server. The code is working fine except for this bit right here:



CALL METHOD go_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
CALL METHOD cl_http_client=>get_last_error(
IMPORTING
code = g_subrc
message = g_errortext ).

WRITE: / 'Error accured: ', g_errortext, 'with the code: ', g_subrc.
EXIT.


ENDIF.



This returns the error "http_communication_failure". I figured out that the detailed message is "Connect to openlibrary.org:80 failed: NIECONN_REFUSED(-10)", however after hours of searching I couldn't figure out how to solve the problem.



anybody can help?










share|improve this question























  • Can you access any other website from the ABAP server? (if you're unsure, run the program RSDEMO_HTML_VIEWER and try google.com for instance)

    – Sandra Rossi
    Nov 20 '18 at 16:24











  • Just tried it out, google.com works fine. If I try openlibrary.org it says "file not found". Can I fix that somehow?

    – Snoopy111
    Nov 21 '18 at 8:43











  • I personally don't have this error, the home page of openlibrary.org is displayed correctly. Maybe a firewall issue, ask your SAP or network administrator.

    – Sandra Rossi
    Nov 21 '18 at 9:15











  • Ok, I will check with him. Thank you!

    – Snoopy111
    Nov 21 '18 at 9:50
















0















I am trying to use my SAP system as a client and to communicate with an external server. The code is working fine except for this bit right here:



CALL METHOD go_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
CALL METHOD cl_http_client=>get_last_error(
IMPORTING
code = g_subrc
message = g_errortext ).

WRITE: / 'Error accured: ', g_errortext, 'with the code: ', g_subrc.
EXIT.


ENDIF.



This returns the error "http_communication_failure". I figured out that the detailed message is "Connect to openlibrary.org:80 failed: NIECONN_REFUSED(-10)", however after hours of searching I couldn't figure out how to solve the problem.



anybody can help?










share|improve this question























  • Can you access any other website from the ABAP server? (if you're unsure, run the program RSDEMO_HTML_VIEWER and try google.com for instance)

    – Sandra Rossi
    Nov 20 '18 at 16:24











  • Just tried it out, google.com works fine. If I try openlibrary.org it says "file not found". Can I fix that somehow?

    – Snoopy111
    Nov 21 '18 at 8:43











  • I personally don't have this error, the home page of openlibrary.org is displayed correctly. Maybe a firewall issue, ask your SAP or network administrator.

    – Sandra Rossi
    Nov 21 '18 at 9:15











  • Ok, I will check with him. Thank you!

    – Snoopy111
    Nov 21 '18 at 9:50














0












0








0








I am trying to use my SAP system as a client and to communicate with an external server. The code is working fine except for this bit right here:



CALL METHOD go_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
CALL METHOD cl_http_client=>get_last_error(
IMPORTING
code = g_subrc
message = g_errortext ).

WRITE: / 'Error accured: ', g_errortext, 'with the code: ', g_subrc.
EXIT.


ENDIF.



This returns the error "http_communication_failure". I figured out that the detailed message is "Connect to openlibrary.org:80 failed: NIECONN_REFUSED(-10)", however after hours of searching I couldn't figure out how to solve the problem.



anybody can help?










share|improve this question














I am trying to use my SAP system as a client and to communicate with an external server. The code is working fine except for this bit right here:



CALL METHOD go_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
CALL METHOD cl_http_client=>get_last_error(
IMPORTING
code = g_subrc
message = g_errortext ).

WRITE: / 'Error accured: ', g_errortext, 'with the code: ', g_subrc.
EXIT.


ENDIF.



This returns the error "http_communication_failure". I figured out that the detailed message is "Connect to openlibrary.org:80 failed: NIECONN_REFUSED(-10)", however after hours of searching I couldn't figure out how to solve the problem.



anybody can help?







sap abap






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 '18 at 13:16









Snoopy111Snoopy111

1




1













  • Can you access any other website from the ABAP server? (if you're unsure, run the program RSDEMO_HTML_VIEWER and try google.com for instance)

    – Sandra Rossi
    Nov 20 '18 at 16:24











  • Just tried it out, google.com works fine. If I try openlibrary.org it says "file not found". Can I fix that somehow?

    – Snoopy111
    Nov 21 '18 at 8:43











  • I personally don't have this error, the home page of openlibrary.org is displayed correctly. Maybe a firewall issue, ask your SAP or network administrator.

    – Sandra Rossi
    Nov 21 '18 at 9:15











  • Ok, I will check with him. Thank you!

    – Snoopy111
    Nov 21 '18 at 9:50



















  • Can you access any other website from the ABAP server? (if you're unsure, run the program RSDEMO_HTML_VIEWER and try google.com for instance)

    – Sandra Rossi
    Nov 20 '18 at 16:24











  • Just tried it out, google.com works fine. If I try openlibrary.org it says "file not found". Can I fix that somehow?

    – Snoopy111
    Nov 21 '18 at 8:43











  • I personally don't have this error, the home page of openlibrary.org is displayed correctly. Maybe a firewall issue, ask your SAP or network administrator.

    – Sandra Rossi
    Nov 21 '18 at 9:15











  • Ok, I will check with him. Thank you!

    – Snoopy111
    Nov 21 '18 at 9:50

















Can you access any other website from the ABAP server? (if you're unsure, run the program RSDEMO_HTML_VIEWER and try google.com for instance)

– Sandra Rossi
Nov 20 '18 at 16:24





Can you access any other website from the ABAP server? (if you're unsure, run the program RSDEMO_HTML_VIEWER and try google.com for instance)

– Sandra Rossi
Nov 20 '18 at 16:24













Just tried it out, google.com works fine. If I try openlibrary.org it says "file not found". Can I fix that somehow?

– Snoopy111
Nov 21 '18 at 8:43





Just tried it out, google.com works fine. If I try openlibrary.org it says "file not found". Can I fix that somehow?

– Snoopy111
Nov 21 '18 at 8:43













I personally don't have this error, the home page of openlibrary.org is displayed correctly. Maybe a firewall issue, ask your SAP or network administrator.

– Sandra Rossi
Nov 21 '18 at 9:15





I personally don't have this error, the home page of openlibrary.org is displayed correctly. Maybe a firewall issue, ask your SAP or network administrator.

– Sandra Rossi
Nov 21 '18 at 9:15













Ok, I will check with him. Thank you!

– Snoopy111
Nov 21 '18 at 9:50





Ok, I will check with him. Thank you!

– Snoopy111
Nov 21 '18 at 9:50












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53393859%2fabap-nieconn-refused-problem-while-recieving-an-answer-from-an-external-server%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53393859%2fabap-nieconn-refused-problem-while-recieving-an-answer-from-an-external-server%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()