502 Bad Gateway - Registered endpoint failed to handle the request
2017-08-07
Greeting from China! I have one question regarding error message “” in SAP cloud platform where I would like to consume an OData service from SAP cloud for customer ( C4C system).
I have a nodejs application where I hard code an end point to an OData service in C4C system. The request is sent to C4C and then I display the result in nodejs console.
The end point for C4C OData service:
https://qxl.dev.sapbydesign.com/sap/byd/odata/v1/opportunity/OpportunityCollection(‘00163E06551B1EE79E9E69D7F8FBCDCF’)
When I test this application locally, it works perfect.
var sURL = "https://qxl-cust233.dev.sapbydesign.com/sap/byd/odata/v1/opportunity/OpportunityCollection('00163E06551B1EE79E9E69D7F8FBCDCF')";var username = 'WANGJER'var password = 'Saptest1'var options = {url: sURL,auth: {user: username,password: password},headers: {'Accept': 'application/json','Content-Type': 'application/json'}};request(options, function (error, response, body) {// console.log('body:', body); var opportunity = JSON.parse(body);var line1 = "Opportunity name: " + opportunity.d.results.Name;console.log(line1);var line2 = "Responsible: " + opportunity.d.results.MainEmployeeResponsiblePartyName;console.log(line2);var line3 = "Opportunity id: " + opportunity.d.results.ObjectID;console.log(line3);var responseText = line1 + "\n" + line2 + "\n" + line3;res.send(responseText);res.send("another line"); // this line will cause error - repeated send response is not allowed});
After I upload it to Cloudfoundry@SCP, it fails to work: I set breakpoint in C4C system and found that the request sent from SCP NEVER reaches C4C system. After some times, SCP received error message “502 Bad Gateway - Registered endpoint failed to handle the request”.
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
502 Bad Gateway - Registered endpoint failed to handle the request相关推荐
- 502 Bad Gateway Registered endpoint failed to handle the request
502 Bad Gateway: Registered endpoint failed to handle the request. 访问一个部署在SAP云平台上的nodejs应用时遇到上述错误消息: ...
- SAP云平台上的502 Bad Gateway错误
错误信息: Ghttps://erry-demo-server.ctapps.eu10.hana.ondemand.com 502 Bad Gateway: Registered endpoint f ...
- Nginx 502错误: Failed to load resource: the server responded with a status of 502 (Bad Gateway)
通用管理后台推荐 (兮家 plus) [兮家 plus], 主要应用于中小型项目的快速开发,已经历历时3年的优化改进,具备完善的基础功能以及代码生成,并且拥有完善的分布式解决方案:如分布式缓存,分布式 ...
- docker 解决php 502,Docker里两个php容器一个正常访问,一个出现502 Bad Gateway nginx/1.17.8。...
问题描述 Docker里两个php容器一个镜像是phpfpm5.6,运行的程序是emlog,正常访问.一个镜像是phpfpm7.3,运行的程序是wordpress,运行的出现502 Bad Gatew ...
- legend3---Homestead中Laravel项目502 Bad Gateway
legend3---Homestead中Laravel项目502 Bad Gateway 一.总结 一句话总结: 用查看错误日志的方法解决错误:(/var/log/nginx/.log) 1.home ...
- AD19 add pins to nets错误_NGINX 502 Bad Gateway错误疑难解答
502 Bad Gateway错误非常常见,此错误代码的确切原因取决于您的特定堆栈. 由于前端Web服务器和后端应用程序处理程序之间的通信中断,通常会出现错误的网关错误.大多数情况下,潜在原因可归因于 ...
- svn提交代码报错:svn: E175002: Unexpected HTTP status 502 ‘Bad Gateway‘
具体报错信息 最近在使用svn提交项目代码时,突然报错,具体报错信息为: svn: E175002: Commit failed (details follow): svn: E175002: Une ...
- 工作日志:502 Bad Gateway异常分析
今天公司某运营系统某接口出现502 Bad Gateway异常. 解决问题思路:去服务器查看nginx异常日志,查找nginx异常日志分析问题 1.使用sudo nginx -t查看nginx配置文件 ...
- 各种HTTP返回错误代码大全 HTTP 403 Forbidden / 404 Not Found / 500 Internal Server Error / 502 Bad Gateway / 50
转载自:http://targetcn.com/?p=52#comment-90 现在上网经常发现各种不能访问的页面,搜索引擎里看的到点开链接却404了,聪明的你当然知道看搜索引擎缓存页面啦,但是你是 ...
最新文章
- 基于Mac自带nginx、php,配置php服务器
- Git学习笔记:远程仓库
- 字节顺序:高位优先(big-endian)和低位优先(little-endian)
- 改变服务器控件的显示属性,2.6.1 设置Style特性和其他属性
- android模拟器 后退键,MainActivity返回键模拟home效果,容易出现的问题
- linux printk 源码,Printk原理简介
- UVC协议USB视频捕获设备定义
- 关系数据库——关系数据语言
- 【TeeChart .NET教程】(七)使用函数
- 线程join_Java 并发编程:线程间的协作(wait/notify/sleep/yield/join)
- 国三计算机考试难度大吗,报考计算机技术在职研考试科目多吗考试难度大吗需要有计算机国三基础吗...
- Windows Phone 7 文件下载进度和速度显示
- 面向对象的基本概念(二)--UML.类之间的关系
- cassandra 学习笔记(2)
- java8 新特性实践
- MES(制造企业生产过程执行管理系统)
- lastwinner分红系统开发
- 免安装、免激活,绿色版的电脑软件下载网站
- 如何配置FMS边缘服务器
- 电脑开机显示自动修复失败无法进入系统,解决方法(亲试有效!!!)
热门文章
- ruby:理解Symbol的二篇好文章
- 72.Minimum Window Substring(最小子串窗口)
- 数据结构与算法-----冒泡排序
- Eclipse常用的快捷方式
- 我遇到的CocoaPods的问题(也许后期会解决,持续更新)
- 讲讲Linq to SQL映射(基础篇)
- 【android】java.net.ConnectException: localhost/127.0.0.1:8080 - Connection refused
- 完成MSP430的IAP升级程序(总结)
- Orm框架介绍和常见的Android Orm框架
- python学习高级篇(part8)--类对象的特殊方法