有赞新零售社区

发帖
API使用问题»token在有效期内,但是调用api报code:4203,message:Token 不存在

[API调用-其它] token在有效期内,但是调用api报code:4203,message:Token 不存在

小里 2022-08-02 2197 浏览 3 评论 | 只看楼主 [打印]  关闭
应用名称:彩云优品商城
应用AppId:10000992
ClientId:65534fc5c5751c1a62
问题描述:token在有效期内,但是调用api报code:4203,message:Token 不存在
获取token返回信息显示"expires":1659510359715,2022-8-3 15:5:59过期{"accessToken":"82422ae0804288609fc7af73837aedc","expires":1659510359715,"authorityId":"40099978","scope":"item item_advanced item_super item_category item_category_advanced item_category_super trade trade_super trading_setting_advanced user user_advanced account_advanced utility utility_advanced utility_super shop_super statistics_advanced logistics coupon_advanced reward_advanced present_advanced wish_advanced peerpay_advanced gift_advanced crm_advanced fenxiao_advanced pay_advanced union_advanced wxd_app aixuedai_app oauth_advanced account_super shop weixin_advanced oauth_super shop_compatible feature_advanced pay_qrcode wsc_app store mars trade_virtual coupon pf nine bbs offline notice_center store_api_normal youren courier points_store time_limited_discount salesman seller_data_center cross_boarder niece multi_store reviews wechat_program_mars weapp_wsc open_market wm app_sdk dzt_crm union_pay pay_trans cy buyer_cart buyer_bill buyer_trade buyer_refund points storage pay_fund_channel meeting cash retail ka_customization panama beauty silently_create_account trade-delivery content_delivery trade_selffetch retail_goods retail_headquater retail_trade beauty_partner spotlight h5_resource_accelerator retail_store dsp_api app_engine oa_api retail-ump retail-peripheral retail-scrm retail-pay retail-data e_commerce_app buyer_address new_wxd_app sharing_tech_mobile seller_refund trade_invoice_platform customer electronic_invoice ebiz-owl stored_value_card gift_card beauty_staff tag beauty_item beauty_appointment beauty_member beauty_order beauty_cashier beauty_stock beauty_shop sougou cloud_api cms extension_analysis business_profile shop_advanced mei_promoter item_hotel item_standard circle selffetchcode virtualticket tags trade_advanced retail_product retail_stock retail_shop retail_supplier supplier data stored_value_card_operation retail_finance general_data level_membership project pay-customs-declaration account_import retail_permission multi_precard pay-gateway open_education_curriculum open_education_line open_education_customer open_education_student open_education_classroom open_education_class open_education_schedule open_education_order open_education_signin open_education_order open_tickets open_education_message open_education_column open_education_content open_education_broadcast rds迁移 open_beauty_service_log open_beauty_work_order open_fenxiao open_fenxiao_trade fin-consumerfin-prod 测试分组删除 open_education_order pay-gateway pay-login pay-ucashier retail_tag retail_tag retail_user retail_logistics retail_virtualcode retail_crossborder retail_reviews retail_reviews retail_crm retail_giftcard retail_address retail_scrm_customer retail_valuecard retail_scrm_tag retail_virtualticket retail_user retail_growth appstore_data retail_pay showcase_api MicroPageAPI open_beauty_verification open_education_coursegroup IoT iot-printer open_msg test open_robot open_clue_manage mei_open_partner material-callback enable_im crm_api transfer-portal youzan_cloud_api retail_peripheral mei_open_ka open_youzan_mcn yunying retail_finance open_isv open_bill data_center callback retail_store retail_ump retail_trade retail_SupplyChain open_trade_fenxiao pay","refreshToken":"4da47a466fe02d81898929c012399e2"}
调用api传入token{"accessToken":"82422ae0804288609fc7af73837aedc","type":"TOKEN"},报错日志:
com.youzan.cloud.open.sdk.common.exception.SDKException: code:4203,message:Token 不存在
        at com.youzan.cloud.open.sdk.core.client.executor.AbstractExecutor.afterExecute(AbstractExecutor.java:71)
        at com.youzan.cloud.open.sdk.core.client.executor.AbstractExecutor.execute(AbstractExecutor.java:36)
        at com.youzan.cloud.open.sdk.core.client.core.DefaultYZClient.getResponseBody(DefaultYZClient.java:61)
        at com.youzan.cloud.open.sdk.core.client.core.DefaultYZClient.invoke(DefaultYZClient.java:42)
        at com.asiainfo.youzan.service.impl.YouZanOverviewDayServiceImpl.getKdtOverviewDay(YouZanOverviewDayServiceImpl.java:70)
        at com.asiainfo.youzan.service.impl.YouZanOverviewDayServiceImpl.syncOverviewDay(YouZanOverviewDayServiceImpl.java:124)
        at com.asiainfo.youzan.job.YouZanOverviewJob.execute(YouZanOverviewJob.java:19)
        at org.apache.shardingsphere.elasticjob.simple.executor.SimpleJobExecutor.process(SimpleJobExecutor.java:33)
        at org.apache.shardingsphere.elasticjob.simple.executor.SimpleJobExecutor.process(SimpleJobExecutor.java:29)
        at org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.process(ElasticJobExecutor.java:172)
        at org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.process(ElasticJobExecutor.java:141)
        at org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.execute(ElasticJobExecutor.java:124)
        at org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.execute(ElasticJobExecutor.java:100)
        at org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJob.execute(LiteJob.java:35)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)

用手机打开
收藏 ··· 回复
    烟光.   黄金   2022-08-02 | 只看该作者
    您好,您的应用没有接入, 请按文档申请接入
    加载更多

    烟光.   黄金   2022-08-05 | 只看该作者
    您好,目前后台没有回复,建议您不要使用refresh_token 来获取token,采用文档里的curl或者http的方式获取token试下:https://doc.youzanyun.com/resource/doc/3031.

    烟光.   黄金   2022-08-06 | 只看该作者
    您好,这里看到您每天半夜一点时都会刷新一次token,麻烦确认下您代码中是否有定时任务。进行刷新token,但并没有保存到数据库

      1跳至
      您需要登录后才可以回帖 登录 | 立即注册

      本版积分规则

      复制链接
      新浪微博
      QQ空间
      微信扫码
      • 回复

      • 评分

      客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

      复制成功