Open condr-at opened 2 years ago
This was a bug in instaloader. Increase the version in requirements.txt from 4.8.1 to 4.9.2 and it will work again
@ctr49 didn't work for me after composing with the latest instaloader. It seems pixelfed has changed something and mastodon.py is not working for it anymore.
I don't know what else could go wrong. Any suggestions?
Found this issue. As I suspected, the problem is in API. https://github.com/halcy/Mastodon.py/issues/169 Don't know what to do from this point. 😢
See second issue here: https://github.com/halcy/Mastodon.py/issues/242 as I've added a snippet of code to reproduce without Instaloader. It doesn't seem like updating the version of Instaloader fixes this, perhaps a change in Pixelfed's API?
@Snuggle here's their latest release. Doesn't seem it's a pixelfed API.
Sorry for bothering you again. Here are logs of JSON content errors. Don't know, maybe it is related to libraries. First run was successful and from the second run I got this:
2022-07-12T07:16:28.005134+00:00 app[web.1]: Could not parse response as JSON, response code was 200, bad json content was 'b'<!DOCTYPE html>\n\n<html lang="en">\n<head>\n\t<meta charset="utf-8">\n\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\n\t<meta name="viewport" content="width=device-width, initial-scale=1">\n\t<meta name="mobile-web-app-capable" content="yes">\n\n\t<title>pixelfed</title>\n\t<link rel="manifest" href="/manifest.json">\n\n\t<meta property="og:site_name" content="pixelfed">\n\t<meta property="og:title" content="pixelfed">\n\t<meta property="og:type" content="article">\n\t<meta property="og:url" content="https://pixelfed.social/login">\n\t\n\t<meta name="medium" content="image">\n\t<meta name="theme-color" content="#10c5f8">\n\t<meta name="apple-mobile-web-app-capable" content="yes">\n\t<link rel="shortcut icon" type="image/png" href="/img/favicon.png?v=2">\n\t<link rel="apple-touch-icon" type="image/png" href="/img/favicon.png?v=2">\n\t<link rel="canonical" href="https://pixelfed.social/login">\n\t<link href="/css/app.css?id=66c10c9502955c88d471277fface8c32" rel="stylesheet" data-stylesheet="light">\n\t<script type="text/javascript">window._sharedData = {curUser: {}, version: 0}; window.App = {config: {"open_registration":true,"uploader":{"max_photo_size":"15000","max_caption_length":"2000","album_limit":"10","image_quality":"85","max_collection_length":100,"optimize_image":true,"optimize_video":true,"media_types":"image\\/jpeg,image\\/gif,image\\/png,video\\/mp4,image\\/webp","enforce_account_limit":true},"activitypub":{"enabled":true,"remote_follow":true},"ab":{"lc":true,"rec":false,"loops":false,"top":false,"polls":false,"cached_public_timeline":true,"gps":false,"spa":true,"emc":true},"site":{"name":"pixelfed","domain":"pixelfed.social","url":"https:\\/\\/pixelfed.social","description":"The original Pixelfed instance, operated by the main developer @dansup"},"username":{"remote":{"formats":{"0":"@","1":"from","2":"custom"},"format":"@","custom":null}},"features":{"timelines":{"local":true,"network":true},"mobile_apis":true,"stories":true,"video":true,"import":{"instagram":false,"mastodon":false,"pixelfed":false},"label":{"covid":{"enabled":false,"org":"visit the WHO website","url":"https:\\/\\/www.who.int\\/emergencies\\/diseases\\/novel-coronavirus-2019\\/advice-for-public"}}}}};</script>\n\t</head>\n<body>\n\t<nav class="navbar navbar-expand navbar-light navbar-laravel shadow-none border-bottom sticky-top py-1">\n\t<div class="container">\n\t\t\t<a class="navbar-brand d-flex align-items-center" href="/" title="Logo">\n\t\t\t\t<img src="/img/pixelfed-icon-color.svg" height="30px" class="px-2" loading="eager" alt="Pixelfed logo">\n\t\t\t\t<span class="font-weight-bold mb-0 d-none d-sm-block" style="font-size:20px;">pixelfed</span>\n\t\t\t</a>\n\n\t\t\t<div class="collapse navbar-collapse">\n\t\t\t\n\t\t\t\n\t\t\t\t<ul class="navbar-nav ml-auto">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a class="nav-link font-weight-bold text-dark" href="/login" title="Login">\n\t\t\t\t\t\t\tLogin\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t</div>\n\t</div>\n</nav>\n\t<main id="content">\n\t\t<div class="container mt-4">\n <div class="row justify-content-center">\n <div class="col-lg-5">\n <div class="">\n <div class="card-header bg-transparent p-3 text-center font-weight-bold h3">Login</div>\n\n <div class="card-body">\n <form method="POST" action="https://pixelfed.social/login">\n <input type="hidden" name="_token" value="0PJX1cvO8fKTPWAUaNnT9top4AwyZdLzcpWCFCka">\n <div class="form-group row">\n\n <div class="col-md-12">\n <input id="email" type="email" class="form-control" name="email" value="" placeholder="Email" required autofocus>\n\n </div>\n </div>\n\n <div class="form-group row">\n\n <div class="col-md-12">\n <input id="password" type="password" class="form-control" name="password" placeholder="Password" required>\n\n </div>\n </div>\n\n <div class="form-group row">\n <div class="col-md-12">\n <div class="checkbox">\n <label>\n <input type="checkbox" name="remember" > \n <span class="font-weight-bold ml-1 text-muted">\n Remember Me\n </span>\n </label>\n </div>\n </div>\n </div>\n\n \n <div class="form-group row mb-0">\n <div class="col-md-12">\n <button type="submit" class="btn btn-primary btn-block btn-lg font-weight-bold">\n Login\n </button>\n\n </div>\n </div>\n </form>\n\n <hr>\n\n <p class="text-center font-weight-bold">\n <a href="https://pixelfed.social/password/reset">\n Forgot Password\n </a>\n </p>\n </div>\n </div>\n </div>\n </div>\n</div>\n\t</main>\n\t<footer>\n <div class="container py-5">\n <p class="text-center text-uppercase font-weight-bold small text-justify">\n <a href="https://pixelfed.social/site/about" class="text-dark p-2">About</a>\n <a href="https://pixelfed.social/site/help" class="text-dark p-2">Help</a>\n <a href="https://pixelfed.social/site/terms" class="text-dark p-2">Terms</a>\n <a href="https://pixelfed.social/site/privacy" class="text-dark p-2">Privacy</a>\n <a href="https://pixelfed.social/site/language" class="text-dark p-2">Language</a>\n </p>\n <p class="text-center text-muted small mb-0">\n <span class="text-muted">\xc2\xa9 2022 pixelfed.social</span>\n <span class="mx-2">\xc2\xb7</span>\n <a href="https://pixelfed.org" class="text-muted font-weight-bold" rel="noopener">Powered by Pixelfed</a>\n <span class="mx-2">\xc2\xb7</span>\n <span class="text-muted">v0.11.3</span>\n </p>\n </div>\n </footer>\n \t<script type="text/javascript" src="/js/manifest.js?id=4e6dd9cb251d9698bfccb781db000cca"></script>\n\t<script type="text/javascript" src="/js/vendor.js?id=467b36b2c099089a7639448443158ceb"></script>\n\t<script type="text/javascript" src="/js/app.js?id=855c8b0847137dd56c72229ad305c032"></script>\n\t<script type="text/javascript" src="/js/components.js?id=35beb0748dd5518371686a5f00348fbf"></script>\n\t</body>\n</html>\n'' 2022-07-12T07:16:28.005145+00:00 app[web.1]: [0m 2022-07-12T07:16:28.005146+00:00 app[web.1]: 2022-07-12 07:16:27.907973 2022-07-12T07:16:28.005146+00:00 app[web.1]: [None, None, None, None, None, None] 2022-07-12T07:16:28.005147+00:00 app[web.1]: [31m😿 > Failed to create toot 2022-07-12T07:17:24.241098+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2022-07-12T07:17:24.385766+00:00 heroku[web.1]: Stopping process with SIGKILL 2022-07-12T07:17:24.515034+00:00 app[web.1]: 2022-07-12T07:17:24.519491+00:00 heroku[web.1]: Process exited with status 137 2022-07-12T07:17:24.797258+00:00 heroku[web.1]: State changed from starting to crashed
BTW, thank you so much for helping me figure out the last issue. It was all about correct composing the container locally and then pushing it to Heroku.