Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot convert undefined or null to object #127

Closed
chenai1512 opened this issue Jul 26, 2018 · 24 comments
Closed

Cannot convert undefined or null to object #127

chenai1512 opened this issue Jul 26, 2018 · 24 comments
Labels

Comments

@chenai1512
Copy link

项目运行是报错,报错信息
TypeError: Cannot convert undefined or null to object

This error is located at:
in Category (at CategoryContainer.js:48)
in CategoryContainer (created by Connect(CategoryContainer))
in Connect(CategoryContainer) (at SceneView.js:17)
in SceneView (at CardStack.js:455)
in RCTView (at View.js:60)
in View (at CardStack.js:454)
in RCTView (at View.js:60)
in View (at CardStack.js:453)
in RCTView (at View.js:60)
in View (at createAnimatedComponent.js:154)
in AnimatedComponent (at Card.js:12)
in Card (at PointerEventsContainer.js:39)
in Container (at CardStack.js:498)
in RCTView (at View.js:60)
in View (at CardStack.js:414)
in RCTView (at View.js:60)
in View (at CardStack.js:413)
in CardStack (at CardStackTransitioner.js:67)
in RCTView (at View.js:60)
in View (at Transitioner.js:142)
in Transitioner (at CardStackTransitioner.js:19)
in CardStackTransitioner (at StackNavigator.js:41)
in Unknown (at createNavigator.js:13)
in Navigator (at createNavigationContainer.js:226)
in NavigationContainer (at root.js:31)
in Provider (at root.js:30)
in Root (at renderApplication.js:33)
in RCTView (at View.js:60)
in View (at AppContainer.js:102)
in RCTView (at View.js:60)
in View (at AppContainer.js:122)
in AppContainer (at renderApplication.js:32)
另外从应用商店下载的应用ios端闪退android端首页白屏

@Richard-Cao
Copy link
Member

删了node_modules重新yarn install应该就好了。
应用商店的APP已经没维护了,现在只维护代码。

@xiaosenlin
Copy link

我也遇到这个问题了,重新安装了也不行,好像两周前运行还是好的,
是不是leancloud出现问题了?
谢谢~

@Richard-Cao
Copy link
Member

今晚我看一下这个问题

@chenai1512
Copy link
Author

我自己已经解决了,这个代码报错是在Category,js这个文件里面的91行,获取不到标签分类,根本原因是源代码里面的showapi过期了无法使用,自己showapi管网申请一个买一下把UrlUtils里面的密钥替换掉就好了。

@Richard-Cao
Copy link
Member

居然已经过期了,看来我晚上要重新申请一下了……非常感谢 @chenai1512

@ZhaoJiYue
Copy link

接口怎么弄呢?一直不通

@Richard-Cao
Copy link
Member

Richard-Cao commented Aug 1, 2018

我发现这个接口从免费的变成收费的了……所以我的key没法用了。

@Richard-Cao
Copy link
Member

ShowAPI was used by iReading from free to charge, so my key doesn't work. You could apply for a new key and replace in UrlUtil.js, it will work properly.

I apologize to inconvenience you.

@Richard-Cao Richard-Cao changed the title 项目运行报错 Cannot convert undefined or null to object Cannot convert undefined or null to object Aug 2, 2018
@xiangangYu
Copy link

我也遇到同样的问题

@Richard-Cao
Copy link
Member

@fengdesola
Copy link

我刚开始接触,请教下怎么定位这种错误,从报错看就知道Category.js有问题@chenai1512 @Richard-Cao

@Tim1437
Copy link

Tim1437 commented Sep 15, 2018

我注册ShowAP帐号,需要新建API吗。还是我也要付费后才能使用,能否提供一些更改KEY方面的指引,没用过ShowAPI

@Richard-Cao
Copy link
Member

这个API现在变成了付费才能使用了…… @Tim1437

@gejiashu
Copy link

showapi_appid:85481
showapi_sign:8c715c0272e241bbbb54280a522334b2
贡献一个刚买的appid,替换掉UrlUtil.js中的就没问题了

@Richard-Cao
Copy link
Member

@gejiashu 非常感谢!如果可以的话方便提个pr替换吗?

@gejiashu
Copy link

已经提交了 @Richard-Cao

@Richard-Cao
Copy link
Member

@gejiashu 非常感谢!

@dbl520
Copy link

dbl520 commented Aug 1, 2019

image
这个是什么错误
Uploading image.png…

@lqliqiong
Copy link

@gejiashu 非常感谢!如果可以的话方便提个pr替换吗?

这个账号也不能用了,自己申请账号 里面的接口规范怎么维护了

@Richard-Cao
Copy link
Member

@gejiashu 非常感谢!如果可以的话方便提个pr替换吗?

这个账号也不能用了,自己申请账号 里面的接口规范怎么维护了

心塞

@wanwenyun
Copy link

请问,这个问题现在有好的解决办法了吗?

@Richard-Cao
Copy link
Member

请问,这个问题现在有好的解决办法了吗?

我的账号失效了……

@zhangxu1123
Copy link

怎么用showapi 呢,我注册账号之后,怎么弄

@nozbwang
Copy link

nozbwang commented Apr 30, 2020

怎么用showapi 呢,我注册账号之后,怎么弄

直接购买 https://www.showapi.com/apiGateway/view?apiCode=582这个数据接口,用你自己的showapi_appid 和 showapi_sign 替换下面图片中的文件中对应的showapi_appid 和 showapi_sign 既可以解决:

image

注册一个账户 然后0.01元可以买1000次调用 用完了换个账户再买
心累

我回头尝试下怎么使用mock的数据 绕过这个限制

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests