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

PaaS开发者中心中SaaS可见范围偶发报错 #1059

Closed
pagezz-canway opened this issue Jan 13, 2023 · 4 comments
Closed

PaaS开发者中心中SaaS可见范围偶发报错 #1059

pagezz-canway opened this issue Jan 13, 2023 · 4 comments
Assignees
Labels
bug Something isn't working todo 进入开发排期的状态,纳入了最近的迭代

Comments

@pagezz-canway
Copy link

BUG反馈还是需求提交(Is this a BUG REPORT or FEATURE REQUEST)? (choose one):
BUG反馈

PaaS/PaaSAgent版本(The versions used):

PaaS 平台 | open_paas | 2.12.49
PaaS Agent | paas_agent | 2.6.3
PaaS Plugins | paas_plugins | 2.5.4

发生了什么(What happened):
开发者中心,SaaS可见范围选择,在进行组织展开时,有一定概率出现转圈。对应的接口返回正常,控制台报错
image

报错信息:
Uncaught ReferenceError: USER_LIST_CALLBACK1673589898964 is not defined
at ?app_code=bk-magicbox&no_page=true&lookup_field=parent&exact_lookups=3&callback=USER_LIST_CALLBACK1673589898964:1:1

image

期望是什么(What you expected to happen):
正常展开组织架构并可选择

如何复现(How to reproduce it):
多尝试几次选择不同的组织

相关的日志详情(访问日志及应用日志: paas.log/login.log/esb.log/esb_api.log)和截图等(Log & Screenshot):

备注(Anything else we need to know):

@wklken wklken self-assigned this Jan 16, 2023
@wklken wklken added todo 进入开发排期的状态,纳入了最近的迭代 bug Something isn't working labels Jan 16, 2023
@wklken
Copy link
Collaborator

wklken commented Jan 30, 2023

多套环境验证未复现

这里前端用的jsonp协议
请求参数: &callback=USER_LIST_CALLBACK1675071307978
响应体: USER_LIST_CALLBACK1675071307978({})

@wklken
Copy link
Collaborator

wklken commented Jan 30, 2023

看着像这个

The server is giving back the JSONP resource using the wrong callback function name.

https://stackoverflow.com/questions/33366992/ajax-with-jsonp-returns-error-callback-is-undefined

需要在能复现的环境, 手工拼接请求验证是否是 esb 服务端的问题, 即验证请求的callback=A是响应体中的 A(), 如果不是就会报issue中的这个错误

@wklken
Copy link
Collaborator

wklken commented Jan 31, 2023

image

caohua pushed a commit to caohua/bk-PaaS that referenced this issue Feb 9, 2023
caohua added a commit to caohua/bk-PaaS that referenced this issue Feb 10, 2023
wklken added a commit that referenced this issue Feb 10, 2023
bugfix: 修复可见范围偶发报错 #1059
@wklken
Copy link
Collaborator

wklken commented Feb 10, 2023

2.14.44

@wklken wklken closed this as completed Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working todo 进入开发排期的状态,纳入了最近的迭代
Projects
None yet
Development

No branches or pull requests

2 participants