< 212024-11-22⋎23 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
00:57Juliet[m]<mstenta[m]> "Give it a try now Juliet :-)" <- It worked!
09:32*farmBOT has joined
14:52*ktohalloran[m] has joined
14:52ktohalloran[m]mstenta: Hey Mike, picking our discussion about the aggregator over here. As I mentioned in discourse, the authorization flow is still failing. It now gets through asking the instance for permission, which did successfully prompt me to authorize the aggregator to get my farm data. But then it returns to the aggregator and just stops--it shows the blue alert at the bottom that says "authorizing" and then that goes away and nothing
14:52ktohalloran[m]happens. In terms of requests, the aggregator shows a failed request to api/v2/utils/authorize-farm/4; the error message returned by the API is just "authorization flow failed". Meanwhile, in the instance, every time I follow the auth flow, the logs show a "Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: No route found for "GET demo02.farmos-demo.com/oauth/token": Method Not Allowed (Allow: POST) in
14:52ktohalloran[m]Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest() (line 131 of /var/www/html/farmOS/vendor/symfony/http-kernel/EventListener/RouterListener.php)." warning. Maybe it's not related, but it's only clue I have as to what about the flow might be failing.
14:54mstenta[m]Hi ktohalloran!
14:54mstenta[m]Hmm
14:56mstenta[m]That is true that /oauth/token only accepts POST requests... 🤔
14:56mstenta[m]git.drupalcode.org/project/simple_oauth/
14:58mstenta[m]This feels familiar... I'm looking for past discussions...
14:58mstenta[m]Unfortunately paul121 is the Aggregator maintainer and he's away at the moment
15:00mstenta[m]The only reference to oauth/token I can find in the Aggregator code is here: github.com/farmOS/farmOS-aggregator/blob
15:00mstenta[m]Which is then used in a POST request (not GET)
15:00mstenta[m]Ooohhh wait... I think I have a hunch....
15:02mstenta[m]Is it possible that there's a redirect happening on the farmOS server? For example, is the Aggregator trying to make a request to http:// but then that's being redirected to https://?
15:02mstenta[m]In some cases, when a redirect like that happens during a POST request, it gets converted to a GET request
15:03mstenta[m]Ah ha! We DO have an issue open for this! github.com/farmOS/farmOS-aggregator/issu
15:05mstenta[m]Unfortunately, that issue is pretty old, so some of the info in it might be in the context of farmOS / Aggregator v1... but the same basic issue applies I think
15:06mstenta[m]Now I'm trying to remember how we worked around that...
15:09mstenta[m]Just to be sure, are you using HTTPS on both the Aggregator and the farmOS instances?
15:17ktohalloran[m]Yes to the instance but apparently not on the aggregator... I think it's because our SSL certificate expired (though I don't really know much about that kind of stuff so maybe not). But let me look into that and get back to you. Thanks!
15:17mstenta[m]OK yea give that a try!
19:53*fosten[m] has joined
19:53fosten[m]Drupal 11 requires Postgres 16+... Aha! Looks like its time to upgrade before v4!
19:54mstenta[m]Yep...
19:54mstenta[m]And PHP 8.3
19:54mstenta[m]farmOS 3.x should work find on Postgres 16
19:54mstenta[m]Not sure about PHP 8.3 though, so might want to wait on that
19:54mstenta[m]s/find/fine/

< 212024-11-22⋏23 >