通过Postman2Jmx.jar,将postman中的json脚本转成jmx脚本问题

Blade 已结 2 1177
3092844924
3092844924 剑圣 2021-05-24 00:01

一、该问题的重现步骤是什么?

1. 然后通过jmeter跑bladex的脚本,发现如下图错误,脚本运行错误image.png

2. 签名认证失败,请求接口:/blade-desk/notice/save,请求IP:127.0.0.1:image.png

3.


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。

2021-05-23 23:53:23.749  WARN 2992 --- [uire-async-jobs] c.a.druid.pool.DruidAbstractDataSource   : discard long time none received connection. , jdbcUrl : jdbc:mysql://122.9.34.174:3306/bladex_boot?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true, version : 1.2.4, lastPacketReceivedIdleMillis : 61075

2021-05-23 23:53:24.315  WARN 2992 --- [XNIO-1 task-144] o.s.c.s.interceptor.TokenInterceptor     : 签名认证失败,请求接口:/blade-desk/notice/save,请求IP:127.0.0.1,请求参数:{"Authorization":["Basic c2FiZXI6c2FiZXJfc2VjcmV0"],"Tenant-Id":["000000"],"Blade-Auth":["bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJpc3N1c2VyIiwiYXVkIjoiYXVkaWVuY2UiLCJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJyb2xlX25hbWUiOiJhZG1pbmlzdHJhdG9yIiwicG9zdF9pZCI6IjEzNTYxNTg2MDA1NDM3Njg1NzciLCJ1c2VyX2lkIjoiMTEyMzU5ODgyMTczODY3NTIwMSIsInJvbGVfaWQiOiIxMTIzNTk4ODE2NzM4Njc1MjAxIiwidXNlcl9uYW1lIjoiYWRtaW4iLCJuaWNrX25hbWUiOiLnrqHnkIblkZgiLCJkZXRhaWwiOnsidHlwZSI6IndlYiJ9LCJ0b2tlbl90eXBlIjoiYWNjZXNzX3Rva2VuIiwiZGVwdF9pZCI6IjEzNTYxNTg1MDA2MjI4NjQzODYiLCJhY2NvdW50IjoiYWRtaW4iLCJjbGllbnRfaWQiOiJzYWJlciIsImV4cCI6MTYyMTc3MTg3NCwibmJmIjoxNjIxNzY4Mjc0fQ.tvW5fhY8lrcBxZmyDZ-jhHdd4jpZ2C4q15mjOHv0mdyi_hqndvr4zRkrnU_EO0pNF2sQl5oMUyYENYgrqmJX5A"]}

2021-05-23 23:53:24.343  WARN 2992 --- [XNIO-1 task-145] o.s.c.s.interceptor.TokenInterceptor     : 签名认证失败,请求接口:/blade-desk/notice/update,请求IP:127.0.0.1,请求参数:{"Authorization":["Basic c2FiZXI6c2FiZXJfc2VjcmV0"],"Tenant-Id":["000000"],"Blade-Auth":["bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJpc3N1c2VyIiwiYXVkIjoiYXVkaWVuY2UiLCJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJyb2xlX25hbWUiOiJhZG1pbmlzdHJhdG9yIiwicG9zdF9pZCI6IjEzNTYxNTg2MDA1NDM3Njg1NzciLCJ1c2VyX2lkIjoiMTEyMzU5ODgyMTczODY3NTIwMSIsInJvbGVfaWQiOiIxMTIzNTk4ODE2NzM4Njc1MjAxIiwidXNlcl9uYW1lIjoiYWRtaW4iLCJuaWNrX25hbWUiOiLnrqHnkIblkZgiLCJkZXRhaWwiOnsidHlwZSI6IndlYiJ9LCJ0b2tlbl90eXBlIjoiYWNjZXNzX3Rva2VuIiwiZGVwdF9pZCI6IjEzNTYxNTg1MDA2MjI4NjQzODYiLCJhY2NvdW50IjoiYWRtaW4iLCJjbGllbnRfaWQiOiJzYWJlciIsImV4cCI6MTYyMTc3MzAyOCwibmJmIjoxNjIxNzY5NDI4fQ.y1F9W6c76p16ZBJDev4sPjOnD7P9YU_yydNctryep0MpS25QZlw36j4Q5sG-DDU_OOpnFBtkq30oPIqD0J8Y2w"]}

2021-05-23 23:56:27.494  WARN 2992 --- [uire-async-jobs] c.a.druid.pool.DruidAbstractDataSource   : discard long time none received connection. , jdbcUrl : jdbc:mysql://122.9.34.174:3306/bladex_boot?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true, version : 1.2.4, lastPacketReceivedIdleMillis : 152930

五、若有更多详细信息,请在下面提供。

2条回答
  •  zhx1994
    zhx1994 (最佳回答者)
    2021-05-24 09:13

    放行或者添加`Blade-Auth`请求头

    8Z])96A%9~Q5K@`{KBLN[XA.png

    1 讨论(1)
  • 2021-05-24 16:27

    加上这个之后可以通过G]PZBO9YAI7X_1MAK}4[L$I.png

    1 讨论(0)
提交回复