你好,我们不会返回Java报错 [图片]
对接微信登陆时,弹出授权界面。点击允许后报错提示找不到activity?UTS插件。在登陆微信时。已经点击弹出的授权页面的允许按钮,但是直接报错了找不到WXEntryActivity。java.lang.RuntimeException: Unable to instantiate activity ComponentInfo
星期一 15:46你好,是你的后台在报错是吗?直接用postman调用接口试试
使用springboot上传永久素材失败,提示412 Precondition Fail,如何解决?请各位大佬帮忙看看 【涉及的相关代码如下】: public class AppConfig { @Bean public RestTemplate restTemplate() { return new RestTemplate(); } } public class MediaService { @Autowired private RestTemplate restTemplate; private static final String UPLOAD_MATERIAL_URL = "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=%s&type=%s"; // 上传 public String upload(String accessToken, String filePath, String mediaType) { String url = String.format(UPLOAD_MATERIAL_URL, accessToken, mediaType); // 创建一个容器,用于存储待发送的表单数据 MultiValueMap body = new LinkedMultiValueMap<>(); //1个key对应多个value body.add("media", new File(filePath)); HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.MULTIPART_FORM_DATA); // 使用请求体和请求头创建一个HTTP实体 HttpEntity> requestEntity = new HttpEntity<>(body, headers); String urlResp = restTemplate.postForObject(url, requestEntity, String.class); return urlResp; } }} 【传入的参数】: [图片] 【以下是报错信息】 接口返回:{ "timestamp": "2024-12-17T04:17:56.860+00:00", "status": 500, "error": "Internal Server Error", "path": "/media/upload" } 代码报错:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.web.client.HttpClientErrorException: 412 Precondition Failed on POST request for "https://api.weixin.qq.com/cgi-bin/material/add_material": [no body]] with root cause org.springframework.web.client.HttpClientErrorException: 412 Precondition Failed on POST request for "https://api.weixin.qq.com/cgi-bin/material/add_material": [no body] at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:136) ~[spring-web-6.2.0.jar!/:6.2.0] at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:225) ~[spring-web-6.2.0.jar!/:6.2.0] at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:163) ~[spring-web-6.2.0.jar!/:6.2.0] at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:953) ~[spring-web-6.2.0.jar!/:6.2.0] at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:902) ~[spring-web-6.2.0.jar!/:6.2.0] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:801) ~[spring-web-6.2.0.jar!/:6.2.0] at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:518) ~[spring-web-6.2.0.jar!/:6.2.0] at com.example.demo.service.MediaService.upload(MediaService.java:70) ~[!/:0.0.1-SNAPSHOT] at com.example.demo.controller.MediaController.upload(MediaController.java:24) ~[!/:0.0.1-SNAPSHOT] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[na:na] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:255) ~[spring-web-6.2.0.jar!/:6.2.0] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:188) ~[spring-web-6.2.0.jar!/:6.2.0] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118) ~[spring-webmvc-6.2.0.jar!/:6.2.0] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:986) ~[spring-webmvc-6.2.0.jar!/:6.2.0] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:891) ~[spring-webmvc-6.2.0.jar!/:6.2.0] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-6.2.0.jar!/:6.2.0] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1088) ~[spring-webmvc-6.2.0.jar!/:6.2.0] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:978) ~[spring-webmvc-6.2.0.jar!/:6.2.0] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014) ~[spring-webmvc-6.2.0.jar!/:6.2.0] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:914) ~[spring-webmvc-6.2.0.jar!/:6.2.0] at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:590) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885) ~[spring-webmvc-6.2.0.jar!/:6.2.0] at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) ~[tomcat-embed-websocket-10.1.33.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-6.2.0.jar!/:6.2.0] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.2.0.jar!/:6.2.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-6.2.0.jar!/:6.2.0] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.2.0.jar!/:6.2.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-6.2.0.jar!/:6.2.0] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.2.0.jar!/:6.2.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:397) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-10.1.33.jar!/:na] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) ~[tomcat-embed-core-10.1.33.jar!/:na] at java.base/java.lang.Thread.run(Thread.java:1583) ~[na:na]
星期一 15:31你好,如果其他公众号涉嫌抄袭你的文章,以及存在其他违规行为,建议进入文章详情页,点击右上角[...] 选择[投诉]进行举报;公众号团队将进行审核,审核时间3-7个工作日。 公众号团队核实后,存在违规行为,搜一搜也会根据平台规则,进行搜索结果调整
公众号号的搜索算法是不是有问题哦,都发一样的 还能收录 ,文字都不改的。管理员能看看吗?[图片]
星期一 15:29你好,小程序助手提交的审核吗?麻烦现在重新试试呢?
无法提交审核啥意思啊?提交新版本的时候提示这个 [图片]
星期一 15:28你好,小程序后台配置下ip白名单 [图片]
小程序报错,请问怎么处理?谢谢小程序报错了 [图片]
星期一 15:27你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
代码更新后,IOS版本不提示更新,更新不了新版本,为什么?代码更新后,IOS版本不提示更新,更新不了新版本,为什么?我用web端的微信打开小程序是正常的,就是我苹果手机没有提示,怎么办? update() { if (wx.canIUse('getUpdateManager')) { const updateManager = wx.getUpdateManager(); updateManager.onCheckForUpdate(function (res) { console.log('onCheckForUpdate====', res) // 请求完新版本信息的回调 if (res.hasUpdate) { console.log('res.hasUpdate====') updateManager.onUpdateReady(function () { wx.showModal({ title: '更新提示', content: '新版本已经准备好,是否重启应用?', success: function (res) { console.log('success====', res) // res: {errMsg: "showModal: ok", cancel: false, confirm: true} if (res.confirm) { // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启 updateManager.applyUpdate() } } }); }); updateManager.onUpdateFailed(function () { // 新的版本下载失败 wx.showModal({ title: '已经有新版本了哟~', content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~' }); }); } }); } }
星期一 15:25你好,能否提供下最新返回的rid
微信公众平台模板消息发送47001错误?[图片]API调用后,返回值 [图片] rid : 6752b4f2-78bd9faf-4512e87c
星期一 15:23你好,企业微信相关问题请到企业微信社区咨询:https://developer.work.weixin.qq.com/community/question
在使用获取群组id列表的api的时候,如何知道chatId和群是怎么对应的?[图片] 这个接口获取到了一堆群组id,但是不知道如何与群组对应上 {"errcode":0,"errmsg":"ok","group_chat_list":[{"chat_id":"wr-TTyCAAAVZfG6MA3fv-o9URWh3xxg","status":0},{"chat_id":"wr-TTyCAAArNAq-_nGzt_QM7xfw","status":0},{"chat_id":"wr-TTyCAAAopDSX1qzcWoTVQ","status":0},{"chat_id":"wr-TTyCAAAx3K5J4KYMRx7WOTkg","status":0}]
星期一 15:18你好,麻烦提供下模板下,openID,完整的请求包,回包和出现问题的具体时间点
微信服务号长期订阅消息,底下多出 的取消订阅入口怎么去除?多了一个取消订阅的入口 [图片] 点击弹出这个 [图片] 未找到相关配置说明
星期一 15:17你好,暂不支持(为什么接口文档上没有相关的调用参数) 关于留言自动精选的问题麻烦提供下对应的推文链接
公众号图文编辑框新增了很多操作按钮,为什么接口文档上没有相关的调用参数?https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Add_draft.html 看起来接口文档已经很久没有更新了,是没有支持相关参数配置吗?我这边调接口新增草稿设置 need_open_comment = 1 开启留言,但发布出去后会开启 自动精选回复 ,这个应该怎么处理?
星期一 15:16