gpt4 book ai didi

java - 调用 follow 函数时出现 InvalidOrMissingInputException

转载 作者:搜寻专家 更新时间:2023-11-01 09:35:12 24 4
gpt4 key购买 nike

当我尝试在 android 中执行跟随操作时,出现以下错误。我错过了什么吗?

Feed otherTimeline = streamClient.newFeed("Feed", "user1");
otherTimeline.follow("Feed", "user2");

这里我想让user1关注user2

InvalidOrMissingInputException{statusCode=400, code=4, exception=InputException, detail=Errors for fields 'target'}
at io.getstream.client.okhttp.repo.handlers.StreamExceptionHandler.handleResponseCode(StreamExceptionHandler.java:42)
at io.getstream.client.okhttp.repo.StreamRepositoryImpl.handleResponseCode(StreamRepositoryImpl.java:223)
at io.getstream.client.okhttp.repo.StreamRepositoryImpl.fireAndForget(StreamRepositoryImpl.java:219)
at io.getstream.client.okhttp.repo.StreamRepositoryImpl.follow(StreamRepositoryImpl.java:101)
at io.getstream.client.model.feeds.BaseFeed.follow(BaseFeed.java:53)
at com.ibtspl.startup.fragment.StreamChatFragment$FollowFeed.doInBackground(StreamChatFragment.java:112)
at com.ibtspl.startup.fragment.StreamChatFragment$FollowFeed.doInBackground(StreamChatFragment.java:106)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

最佳答案

无法关注汇总的供稿。只有平面提要是可以在 getstream.io 中关注的内容,请参阅 documentation

关于java - 调用 follow 函数时出现 InvalidOrMissingInputException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43896435/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com