报错: Request processing failed: java.lang.NullPointerException: Parameter specified as non-null is null: method
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method okhttp3.Request$Builder.addHeader, parameter value
at okhttp3.Request$Builder.addHeader(Request.kt) ~[okhttp-4.10.0.jar:na]
at com.tencent.polaris.plugins.configuration.connector.polaris.rest.RestOperator.doPost(RestOperator.java:78) ~[polaris-configuration-connector-1.12.9.jar:na]
at com.tencent.polaris.plugins.configuration.connector.polaris.OpenapiService.createConfigFile(OpenapiService.java:99) ~[polaris-configuration-connector-1.12.9.jar:na]
at com.tencent.polaris.plugins.configuration.connector.polaris.OpenapiService.createConfigFile(OpenapiService.java:75) ~[polaris-configuration-connector-1.12.9.jar:na]
at com.tencent.polaris.plugins.configuration.connector.polaris.PolarisConfigFileConnector.createConfigFile(PolarisConfigFileConnector.java:121) ~[polaris-configuration-connector-1.12.9.jar:na]
at com.tencent.polaris.configuration.client.factory.DefaultConfigFilePublishFactory.createConfigFile(DefaultConfigFilePublishFactory.java:62) ~[polaris-configuration-client-1.12.9.jar:na]
at com.tencent.polaris.configuration.client.internal.DefaultConfigFileManager.createConfigFile(DefaultConfigFileManager.java:105) ~[polaris-configuration-client-1.12.9.jar:na]
at com.tencent.polaris.configuration.client.DefaultConfigFilePublishService.createConfigFile(DefaultConfigFilePublishService.java:54) ~[polaris-configuration-client-1.12.9.jar:na]
at com.tencent.polaris.configuration.client.DefaultConfigFilePublishService.createConfigFile(DefaultConfigFilePublishService.java:48) ~[polaris-configuration-client-1.12.9.jar:na]
Describe the bug 无法推送修改后的配置到配置中心
To Reproduce
报错: Request processing failed: java.lang.NullPointerException: Parameter specified as non-null is null: method
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method okhttp3.Request$Builder.addHeader, parameter value at okhttp3.Request$Builder.addHeader(Request.kt) ~[okhttp-4.10.0.jar:na] at com.tencent.polaris.plugins.configuration.connector.polaris.rest.RestOperator.doPost(RestOperator.java:78) ~[polaris-configuration-connector-1.12.9.jar:na] at com.tencent.polaris.plugins.configuration.connector.polaris.OpenapiService.createConfigFile(OpenapiService.java:99) ~[polaris-configuration-connector-1.12.9.jar:na] at com.tencent.polaris.plugins.configuration.connector.polaris.OpenapiService.createConfigFile(OpenapiService.java:75) ~[polaris-configuration-connector-1.12.9.jar:na] at com.tencent.polaris.plugins.configuration.connector.polaris.PolarisConfigFileConnector.createConfigFile(PolarisConfigFileConnector.java:121) ~[polaris-configuration-connector-1.12.9.jar:na] at com.tencent.polaris.configuration.client.factory.DefaultConfigFilePublishFactory.createConfigFile(DefaultConfigFilePublishFactory.java:62) ~[polaris-configuration-client-1.12.9.jar:na] at com.tencent.polaris.configuration.client.internal.DefaultConfigFileManager.createConfigFile(DefaultConfigFileManager.java:105) ~[polaris-configuration-client-1.12.9.jar:na] at com.tencent.polaris.configuration.client.DefaultConfigFilePublishService.createConfigFile(DefaultConfigFilePublishService.java:54) ~[polaris-configuration-client-1.12.9.jar:na] at com.tencent.polaris.configuration.client.DefaultConfigFilePublishService.createConfigFile(DefaultConfigFilePublishService.java:48) ~[polaris-configuration-client-1.12.9.jar:na]
发现是未配置token导致的,手动设置token后,配置
spring.cloud.polaris.token
无效Expected behavior 希望能在代码里面正常更新配置中心配置
Environment
Additional context