{"id":2764,"date":"2023-02-03T03:41:22","date_gmt":"2023-02-02T18:41:22","guid":{"rendered":"https:\/\/okamoto3.com\/?p=2764"},"modified":"2023-03-01T10:52:39","modified_gmt":"2023-03-01T01:52:39","slug":"motioneye-dropbox-up-error","status":"publish","type":"post","link":"https:\/\/okamoto3.com\/index.php\/2023\/02\/03\/motioneye-dropbox-up-error\/2764\/","title":{"rendered":"MotionEye, MotionEye.eo\u3000Dropbox Invalid client_id\u3000\u76f4\u3057\u65b9"},"content":{"rendered":"<p>MotionEye\u3067Dropbox\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30cf\u30de\u3063\u305f\uff01\u306a\u3093\u3068\u304b\u89e3\u6c7a\u3057\u305f\u306e\u3067\u3001\u3055\u3089\u3059\u3002<\/p><p>MotionEye\u3082MotionEye.eo\u3082\u540c\u3058\u3084\u308a\u65b9\u3067OK!<\/p><h2 class=\"wp-block-heading\">Error (400)\uff01\uff1f<\/h2><p>It seems the app you were using submitted a bad request. If you would like to report this error to the app&#8217;s developer, include the information below.<br \/>More details for developers<br \/>Invalid client_id: &#8220;dropbox_client_id_placeholder&#8221;.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"569\" height=\"1024\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_111209336675100405774308.jpg?resize=569%2C1024&#038;ssl=1\" alt=\"\" class=\"wp-image-2765\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_111209336675100405774308.jpg?resize=569%2C1024&amp;ssl=1 569w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_111209336675100405774308.jpg?resize=167%2C300&amp;ssl=1 167w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_111209336675100405774308.jpg?resize=768%2C1383&amp;ssl=1 768w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_111209336675100405774308.jpg?resize=853%2C1536&amp;ssl=1 853w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_111209336675100405774308.jpg?resize=600%2C1081&amp;ssl=1 600w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_111209336675100405774308.jpg?w=1080&amp;ssl=1 1080w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><figcaption class=\"wp-element-caption\">\u8ab0\u3067\u3059\u304b\u3041\uff1f\u308f\u3057\u3082\u5206\u304b\u3089\u3093\uff01<\/figcaption><\/figure><\/div><h2 class=\"wp-block-heading\">\u539f\u56e0\uff1aClient id\u8a2d\u5b9a\u306a\u3057\uff01\uff1f<\/h2><p>\u30a2\u30d7\u30ea\u958b\u767a\u8005\u306b\u9023\u7d61\uff1fMotionEye\u306e\u958b\u767a\u8005\uff1fDropbox\u3068\u30d5\u30a1\u30a4\u30eb\u306e\u3084\u308a\u53d6\u308a\u3059\u308bDropbox API\u306e\uff29\uff24\u306e\u3053\u3068\u304b\u3002\u63a2\u3057\u305f\u3067\u3002<\/p><h2 class=\"wp-block-heading\">client_id\u306e\u53d6\u5f97<\/h2><p class=\"has-text-align-center has-cyan-bluish-gray-background-color has-background\"><a href=\"https:\/\/www.dropbox.com\/developers\/apps\">https:\/\/www.dropbox.com\/developers\/apps<\/a><\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"489\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_1809506601138787075164899.jpg?resize=750%2C489&#038;ssl=1\" alt=\"\" class=\"wp-image-2771\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_1809506601138787075164899.jpg?resize=1024%2C667&amp;ssl=1 1024w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_1809506601138787075164899.jpg?resize=300%2C196&amp;ssl=1 300w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_1809506601138787075164899.jpg?resize=768%2C501&amp;ssl=1 768w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_1809506601138787075164899.jpg?resize=600%2C391&amp;ssl=1 600w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_1809506601138787075164899.jpg?w=1080&amp;ssl=1 1080w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">\u30af\u30ea\u30c3\u30af<\/figcaption><\/figure><\/div><figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"724\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_11172259424375154172287.jpg?resize=750%2C724&#038;ssl=1\" alt=\"\" class=\"wp-image-2769\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_11172259424375154172287.jpg?resize=1024%2C989&amp;ssl=1 1024w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_11172259424375154172287.jpg?resize=300%2C290&amp;ssl=1 300w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_11172259424375154172287.jpg?resize=768%2C742&amp;ssl=1 768w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_11172259424375154172287.jpg?resize=600%2C579&amp;ssl=1 600w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/img_20230202_11172259424375154172287.jpg?w=1080&amp;ssl=1 1080w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">\u3053\u306e\u3042\u305f\u308a<\/figcaption><\/figure><ul class=\"has-vivid-red-color has-text-color wp-block-list\"><li>App key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   xxxxxxxxxxxxxxx<\/li>\n\n<li>App secret&nbsp;&nbsp;&nbsp; yyyyyyyyyyyyyyy<\/li><\/ul><p>\u3053\u308c\u3089\u3092MotionEye\u306b\u30b3\u30d4\u30da\u3059\u308b\u3002<\/p><ul class=\"wp-block-list\"><li>App key\u2192\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff29\uff24(CLIENT_ID)<\/li>\n\n<li>App secret\u2192\u30d1\u30b9\u30ef\u30fc\u30c9(CLIENT_NOT_SO_SECRET)<\/li><\/ul><p><strong>Dropbox\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u3066\u3044\u306a\u3044\u4eba\u306f\u3053\u3061\u3089\u3092\u53c2\u7167\u3057\u3066\u3084\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/strong><\/p><ul class=\"wp-block-list\"><li><a href=\"https:\/\/help.dropbox.com\/ja-jp\/share\/share-with-others#:~:text=dropbox.com%20%E3%81%AB%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%97,%E4%BA%BA%E6%95%B0%E3%81%AB%E5%88%B6%E9%99%90%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82\">\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u306e\u3084\u308a\u65b9<\/a><\/li>\n\n<li><a href=\"https:\/\/www.dropbox.com\/developers\/\">Dropbox API<\/a><\/li><\/ul><h2 class=\"wp-block-heading\">MotionEye\u3078\u306e\u8a2d\u5b9a<\/h2><p>google\u5148\u751f\u3068\u308f\u3057\u306e\u30ab\u30f3\u306b\u3088\u308auploadservices.py\u3058\u3083\u306d\uff1f\u30ab\u30f3\u8a00\u3046\u3088\u308a\u305d\u306e\u307e\u307e\u306e\u304a\u540d\u524d\u3002<\/p><ul class=\"has-white-color has-black-background-color has-text-color has-background wp-block-list\"><li>sudo find \/ -name &#8216;uploadservices.py&#8217;<\/li><\/ul><p>\u308f\u3057\u306e\u306f\u3001\u3053\u3053\u306b\u3042\u3063\u305f\u3067\u3002<\/p><p>\/usr\/local\/lib\/python3.9\/dist-packages\/motioneye<\/p><p>\u5909\u66f4\u524d\u306b\u30aa\u30ea\u30b8\u30ca\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u3068\u3053\u3002<\/p><ul class=\"has-white-color has-black-background-color has-text-color has-background wp-block-list\"><li>sudo cp \/usr\/local\/lib\/python3.9\/dist-packages\/motioneye\/uploadservices.py \/usr\/local\/lib\/python3.9\/dist-packages\/motioneye\/uploadservices.py.org<\/li><\/ul><p>\u5909\u66f4\u3058\u3083\u3002\u308f\u3057\u306fnano\u3068\u304b\u8a00\u3046Editor\u3058\u3083\u3002<\/p><ul class=\"has-white-color has-black-background-color has-text-color has-background wp-block-list\"><li>sudo nano \/usr\/local\/lib\/python3.9\/dist-packages\/motioneye\/uploadservices.py<\/li><\/ul><p>\u30af\u30e9\u30b9\u540dDropbox\u3092\u898b\u3064\u3051\u3001\u4ee5\u4e0b\u306e\u5909\u66f4\u3092\u52a0\u3048\u308b\u3002(ctrl+w\u3067\u691c\u7d22)<\/p><p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3042\u308bdropbox_client_id_placeholder\u63a2\u3059\u307b\u3046\u304c\u304a\u5229\u53e3\u3055\u3093\u3002<\/p><pre class=\"wp-block-preformatted has-white-color has-black-background-color has-text-color has-background\">class Dropbox(UploadService):<br>\u00a0\u00a0\u00a0 NAME = 'dropbox'<br><br>\u00a0\u00a0\u00a0 AUTH_URL = 'https:\/\/www.dropbox.com\/oauth2\/authorize'<br>\u00a0\u00a0\u00a0 TOKEN_URL = 'https:\/\/api.dropboxapi.com\/oauth2\/token'<br><br><mark style=\"background-color:rgba(0,0,0,0);color:#abb8c3\" class=\"has-inline-color has-cyan-bluish-gray-color\">#\u5143\u00a0\u00a0\u00a0 CLIENT_ID = 'dropbox_client_id_placeholder'<\/mark><br>\u00a0\u00a0\u00a0 CLIENT_ID = '<mark style=\"background-color:rgba(0,0,0,0);color:#cf2e2e\" class=\"has-inline-color has-vivid-red-color\">xxxxxxxxxxxxxxx'<\/mark><br><mark style=\"background-color:rgba(0,0,0,0);color:#abb8c3\" class=\"has-inline-color has-cyan-bluish-gray-color\">#\u5143\u00a0\u00a0\u00a0 CLIENT_NOT_SO_SECRET = 'dropbox_client_secret_placeholder'<\/mark><br>\u00a0\u00a0\u00a0 CLIENT_NOT_SO_SECRET = '<mark style=\"background-color:rgba(0,0,0,0);color:#cf2e2e\" class=\"has-inline-color has-vivid-red-color\">yyyyyyyyyyyyyyy<\/mark>'<br><br>\u00a0\u00a0\u00a0 LIST_FOLDER_URL = 'https:\/\/api.dropboxapi.com\/2\/files\/list_folder'<br><\/pre><p>\u8d64\u8272\u306e\u3068\u3053\u308d\u3078\u3001\u5148\u307b\u3069\u8abf\u3079\u305f\u3084\u3064\u3092\u30b3\u30d4\u30da<\/p><p>\u305d\u308c\u306b\u3057\u3066\u3082\u3001\u4f55\u3068\u3044\u3046\u5909\u6570\u540d\uff01\u6700\u521d\u5206\u304b\u3089\u3093\u304b\u3063\u305f\u3002<\/p><p>\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u305f\u3089(ctrl+s,ctrl+x)<\/p><h2 class=\"wp-block-heading\">MotionEye\u306e\u30ea\u30b9\u30bf\u30fc\u30c8<\/h2><ul class=\"has-white-color has-black-background-color has-text-color has-background wp-block-list\"><li>sudo systemctl restart motioneye<\/li><\/ul><h2 class=\"wp-block-heading\">\u30b5\u30fc\u30d3\u30b9\u306e\u72b6\u614b\u3092\u78ba\u8a8d<\/h2><ul class=\"has-white-color has-black-background-color has-text-color has-background wp-block-list\"><li>sudo systemctl status motioneye<\/li><\/ul><h2 class=\"wp-block-heading\">\u6050\u3089\u304f\u3001\u3053\u3061\u3089\u306e\u5bfe\u5fdc\u3082\u5fc5\u8981\u306a\u306f\u305a<\/h2><figure class=\"wp-block-embed is-type-wp-embed is-provider-sgg-039-s wp-block-embed-sgg-039-s\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"BEbF6o8c0K\"><a href=\"https:\/\/okamoto3.com\/index.php\/2023\/02\/03\/motioneye-post-data\/2774\/\">MotionEye, MotionEye .eo post data cannot be of type str!\u3000\u76f4\u3057\u65b9<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;MotionEye, MotionEye .eo post data cannot be of type str!\u3000\u76f4\u3057\u65b9&#8221; &#8212; sGG&#039;s\" src=\"https:\/\/okamoto3.com\/index.php\/2023\/02\/03\/motioneye-post-data\/2774\/embed\/#?secret=qBp2Reg9vH#?secret=BEbF6o8c0K\" data-secret=\"BEbF6o8c0K\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure><p class=\"has-text-align-center\">\u53c2\u8003\u307e\u3067<\/p><p class=\"has-text-align-left\">\u4ee5\u4e0a<\/p><hr class=\"wp-block-separator has-css-opacity\"\/><div class=\"wp-block-image is-style-rounded\"><figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"400\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2022\/11\/img_20220407_2354325993026044766018607.jpg?resize=400%2C400&#038;ssl=1\" alt=\"\" class=\"wp-image-2621\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2022\/11\/img_20220407_2354325993026044766018607.jpg?w=400&amp;ssl=1 400w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2022\/11\/img_20220407_2354325993026044766018607.jpg?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2022\/11\/img_20220407_2354325993026044766018607.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2022\/11\/img_20220407_2354325993026044766018607.jpg?resize=100%2C100&amp;ssl=1 100w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure><\/div><hr class=\"wp-block-separator has-css-opacity\"\/>","protected":false},"excerpt":{"rendered":"<p>MotionEye\u3067Dropbox\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30cf\u30de\u3063\u305f\uff01\u306a\u3093\u3068\u304b\u89e3\u6c7a\u3057\u305f\u306e\u3067\u3001\u3055\u3089\u3059\u3002 MotionEye\u3082MotionEye.eo\u3082\u540c\u3058\u3084\u308a\u65b9\u3067OK! Error (400)\uff01\uff1f It se&hellip; <a class=\"more-link\" href=\"https:\/\/okamoto3.com\/index.php\/2023\/02\/03\/motioneye-dropbox-up-error\/2764\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">MotionEye, MotionEye.eo\u3000Dropbox Invalid client_id\u3000\u76f4\u3057\u65b9<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2766,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[213,54],"tags":[190],"class_list":["post-2764","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-all-articles","category-setting","tag-motioneye","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2023\/02\/IMG_20230202_180158.jpg?fit=307%2C307&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/2764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/comments?post=2764"}],"version-history":[{"count":15,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/2764\/revisions"}],"predecessor-version":[{"id":2819,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/2764\/revisions\/2819"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/media\/2766"}],"wp:attachment":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/media?parent=2764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/categories?post=2764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/tags?post=2764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}