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

AttributeError: 'dict' object has no attribute 'startswith' #100

Open
waahah opened this issue Apr 19, 2023 · 5 comments
Open

AttributeError: 'dict' object has no attribute 'startswith' #100

waahah opened this issue Apr 19, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@waahah
Copy link

waahah commented Apr 19, 2023

环境:github+sqlite+vercel+开启配置项友链SETTINGS_FRIENDS_LINKS,run workflow报下列错
地址:https://github.com/waahah/hexo-circle-of-friends

2023-04-20 01:05:26|ERROR|2078|hexo_circle_of_friends.utils.project|SYSTEM ERROR
Traceback (most recent call last):
File "./hexo_circle_of_friends/run.py", line 152, in
main()
File "./hexo_circle_of_friends/run.py", line 23, in main
initsettings(settings, user_conf)
File "./hexo_circle_of_friends/run.py", line 127, in initsettings
settings_friends_json_read(json_api, user_conf)
File "./hexo_circle_of_friends/run.py", line 89, in settings_friends_json_read
if json_api.startswith("http"):
AttributeError: 'dict' object has no attribute 'startswith'
Error: Process completed with exit code 1.
image

image

@hiltay
Copy link
Contributor

hiltay commented Apr 20, 2023

这是配置api的地方,想直接写配置放到下面的list里。

@waahah
Copy link
Author

waahah commented Apr 20, 2023

配置放到下面的list里后访问vercel domains /all后显示500: INTERNAL_SERVER_ERROR

image

github action run显示:

image

vercel log:

image

@hiltay
Copy link
Contributor

hiltay commented Apr 20, 2023

配置有问题,LINK可以置空,但不能没有LINK

@waahah
Copy link
Author

waahah commented Apr 20, 2023

额,LINK置空后再运行,github actons 还是显示获取文章为0,访问vercel域名/all显示{"message":"start error"}
开启的配置项友链都是支持atom.xml格式的,有什么问题吗?
image

@hiltay
Copy link
Contributor

hiltay commented Apr 22, 2023

正在排查,暂时先为LINK添加一条内容,应该可以解决。

@hiltay hiltay added the bug Something isn't working label Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants