proshunsuke / colmsg Goto Github PK
View Code? Open in Web Editor NEWA CLI tool for 櫻坂46メッセージ, 日向坂46メッセージ, 乃木坂46メッセージ and 齋藤飛鳥メッセージ app.
License: MIT License
A CLI tool for 櫻坂46メッセージ, 日向坂46メッセージ, 乃木坂46メッセージ and 齋藤飛鳥メッセージ app.
License: MIT License
今使いツールバージョンは2.0.2です。
エラーログはリンクで
https://drive.google.com/file/d/1LVCHSQyJURKpz6TcsJjIQXKEs6B2Tzoy/view?usp=sharing
I got the following error and I used the debugger to find the problem.
I found that the problem is related to the .DS_Store
file generated by macOS for storing attributes.
https://en.wikipedia.org/wiki/.DS_Store
When the .DS_Store
file is generated in member's folder, the function id_by_filename_format
cannot capture the id
and it will panic.
Can I make a pull request NRngnl/colmsg@ff89f70?
I am not sure if I should change the functions.
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/message/saver.rs:219:17
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::panic
3: colmsg::message::saver::id_by_filename_format
4: colmsg::message::saver::Saver<C>::id_dates::{{closure}}
5: walkdir::IntoIter::push
6: walkdir::IntoIter::handle_entry
7: <walkdir::IntoIter as core::iter::traits::iterator::Iterator>::next
8: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::next
9: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
10: colmsg::message::saver::Saver<C>::save
11: colmsg::run_hinatazaka
12: colmsg::main
APP's UA and App-ID have been updated, please follow up, otherwise there will be 400 Bad Request.Thanks
Support for the recently released "乃木坂46メッセージ".
https://www.nogizaka46.com/s/n46/news/detail/65279?ima=3103
2020/01/01/ 00:00:00
→ 2020/01/01 00:00:00
など
APIのマイナーバージョンが異なっていた際のエラー
[colmsg error]: HTTP status client error (400 Bad Request) for url (https://api.kh.glastonr.net/v2/groups?)
これはこちらの error_for_status
を使っており、エラーになった時にレスポンスをエラーにしてしまうので、reqwestのエラーメッセージがそのまま出ている
https://docs.rs/reqwest/0.8.0/reqwest/struct.Response.html#method.error_for_status
colmsgのコードで言うとこの辺
Line 60 in c64f94f
本当はその後のこの部分でエラーを込めて欲しかったが、現状あまり意味を成していない
Lines 67 to 75 in c64f94f
An error occurred after Sakurazaka's 3rd generation message started.
[colmsg error]: HTTP status client error (400 Bad Request) for url (https://api.s46.glastonr.net/v2/update_token)
Command, build fails when using openssl3.
I can't create down directory and the command is
colmsg --h_refresh_ token "h_refresh_ token"
what is problem? Thanks you
I have problem when download 宮田愛萌
saving messages of 宮田愛萌...
thread 'main' panicked at 'called Option::unwrap()
on a None
value', src/message/saver.rs:220:17
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
100件以上保存出来ない
コマンド実行が終わらないので、無限ループしてずっと同じメッセを取得し続けているような気がする
日向坂しか購読していないと-g hinatazakaつけないと以下のエラーが出るのはバグな気がします。
[colmsg error]: HTTP status client error (400 Bad Request) for url (https://api.s46.glastonr.net/v2/update_token)
= note: /home/pro_shunsuke/Documents/osxcross/target/bin/x86_64-apple-darwin14-ld: error while loading shared libraries: libicui18n.so.65: cannot open shared object file: No such file or directory
clang-10: ¥033[1;31merror: unable to execute command: No such file or directory¥033[0;30m
clang-10: ¥033[1;31merror: linker command failed due to signal (use -v to see invocation)¥033[0;30m
refs: #41 (comment)
Can I change the download folder location?
first, i used my refresh token like"7fac6109-....." on my computer
and then i used friend's refresh token "40ef2f64-......".
But when i come back to use my refresh token. program was download data from friend's refresh token.
i tried to restart computer , it wasn't solve my problem
C:\Users...\colmsg.exe -n 関有美子 --dir G:\colmsg --h_refresh_token <h_refresh_token> --s_refresh_token <s_refresh_token>
saving messages of 関有美子...
←31m[colmsg error]←[0: error: missing field member_id
at line 1 column 1538, request url:
For example, I got a refresh from a friend of mine, and his subscription was earlier than mine. But if you use it directly, you may not be able to get the previous message.
So I was wondering if I could add a detection command that, if used, would compare the local files from the server to see if they exist, and download if they don't, this will also help us to download those who have failed to download due to network problems
In the event of a failed download, add the retry download feature.
response during maintenance
% colmsg
[colmsg error]: error: invalid type: map, expected a sequence at line 1 column 10, response body: {"result":{},"status":"FAIL","statuscd":"E700"}
response body json
{
"result": {},
"status": "FAIL",
"statuscd": "E700"
}
an error occured
[colmsg error] error decoding response body: invalid type: null, expected u32 at line 1 column 999
to be able to know error details
ツールが突然死することがありエラーも吐かないので、どこで失敗しているのかが分かりにくい
オプションを渡すと詳細にログを出力するモードを追加する
The colmsg does not work now with version 2.0.00
crates.ioに登録してそれを使うようにする
mac向けにクロスコンパイルをした
メモを残す
OS: Manjaro Linux
基本は上記の手順通り
上記の手順はDebian系なので、 Install build dependencies
の部分でarch用のパッケージが分からないが、基本的にgccが入っていれば大丈夫そうだった
Building the project
のところで PATH="$(pwd)/osxcross/target/bin:$PATH"
としているが、これは Building osxcross
でビルドしたものについてパスを通そうとしているので、colmsgをビルドする場合は以下のような感じになる
PATH="/home/pro_shunsuke/Documents/osxcross/target/bin:$PATH" \
cargo build --release --target x86_64-apple-darwin
つまりは pwd
をそのまま使うとダメで、 osxcross
のパスを通すようにコマンド実行する必要がある
あとリリース用にビルドするのであれば --release
が必要
こんな感じになる
pro_shunsuke:[~/Documents/colmsg][2:32:11]-[master]
% ls target/
debug/ release/ x86_64-apple-darwin/
pro_shunsuke:[~/Documents/colmsg][3:13:34]-[master]
% ls target/x86_64-apple-darwin/release/
build/ colmsg* colmsg.d deps/ examples/ incremental/ libcolmsg.d libcolmsg.rlib
"欅坂46/日向坂46メッセージ" will be divided into "櫻坂46メッセージ" & "日向坂46メッセージ" on 10/14.
Please note that the colmsg may not work after 10/14.
使用の際にこのメッセージを出ました
僕は普通に使用したけど
�[31m[colmsg error]�[0m: HTTP status client error (400 Bad Request) for url (https://api.kh.glastonr.net/v2/update_token)
licenseとか適当なので
An error occurs when executing a command(.\colmsg.exe).
[Details]
HTTP status client error (400 Bad Request) for url (https://api.kh.glastonr.net/v2/update_token)
C:\Users...\colmsg.exe -n 大園玲 --dir G:\colmsg --h_refresh_token <h_refresh_token> --s_refresh_token <s_refresh_token>
←31m[colmsg error]←[0: error: missing field member_id
at line 1 column 1551, request url:
Hi, I can't download Hinatazaka 1st gen's message.
PS C:\Users< username >\colmsg-0.1.2> C:\Users< username >\colmsg.exe -n 影山優佳 --username < my Username > --token < my Token >
Only when use colmsg.exe -n 渡邉美穂 will nothing happened
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.