< 222022-08-23⋎24 >

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
13:43FarmerEd[m] symbioquine I have done a little further testing of Asset Link, it doesn't seem to like Arm64 (As the farmOS Server). In the grand scheme of things probably couldn't be described as a bug since farmOS itself is not currently officially supported on Arm64 but thought I'd share just the same.
13:44symbioquine[m]Hmmm, the server architecture shouldn't matter as long as you're installing the already built module...
13:44FarmerEd[m]Could be a minor difference in a library somewhere?
13:45FarmerEd[m]Uncaught (in promise) SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
13:45symbioquine[m]It's pretty much all client-side JS code that runs in the browser
13:45FarmerEd[m]from chrome dev console
13:45symbioquine[m]FarmerEd[m]: That sounds like an issue, but probably not Arm/Intel related
13:46mstenta[m]Sounds like maybe an error is occurring serving the JSON?
13:46mstenta[m]So it's showing Drupal error html instead
13:46mstenta[m]Can you go to the path directly Farmer Ed - or look at `/admin/reports/dblog` - might give more info
13:46symbioquine[m]Can you share the url that is occurring for? (minus the domain if you want)
13:49FarmerEd[m]hmm, nothing in the log that I can see.
13:50mstenta[m]try going to the URL for the JSON file directly in your browser
13:50mstenta[m]see what shows up
13:51symbioquine[m]Actually, it might not be obvious what the URL is... since that error would occur in the JS code...
13:51mstenta[m]ah
13:51symbioquine[m]Maybe for a start, what page are you on?
13:52FarmerEd[m]Loading server schema
13:53symbioquine[m]ah, so something like `/alink/asset/5`?
13:53FarmerEd[m] This is highlighted in assetlink.js
13:53FarmerEd[m]const relatedSchema = await fetchJson(serverRelatedSchema.targetSchema);
13:55FarmerEd[m]Not getting the same issue on a virtual box version of the site running on my laptop
13:55symbioquine[m]> <@farmer-ed:matrix.org> This is highlighted in assetlink.js
13:55symbioquine[m]> const relatedSchema = await fetchJson(serverRelatedSchema.targetSchema);
13:55symbioquine[m]Yeah, I think I ran into the same issue and have a fix for that already, but will need to push out a new release version...
13:56symbioquine[m]github.com/symbioquine/farmOS_asset_link
13:58symbioquine[m]I'd been developing against an older version of Drupal's JSON:Schema implementation which always served the `.targetSchema` field as a plain string, but sometime since then they changed it to be an object with the url in a `$ref` attribute of that object.
13:59FarmerEd[m]ah OK, I could be running 2 different versions here
14:00symbioquine[m]No, it's not your fault. You're running an up-to-date version of farmOS/Drupal and Asset Link should work with it - once I release v0.5.4 :)
14:01FarmerEd[m]obviously up to date on Arm but not x86
14:02FarmerEd[m]anyway thanks for the quick explanation
14:05symbioquine[m]FarmerEd[m]: I would guess maybe you have an older version of the farmOS Docker image on your Virtualbox instance, which would be why it's working there.
15:38symbioquine[m]Should be fixed now if you upgrade to 0.5.4 - farmos.discourse.group/t/asset-link-dev-
15:38FarmerEd[m]see that....
15:38FarmerEd[m]Took your time 🤣
15:46FarmerEd[m]yep, that fixed it
16:03FarmerEd[m]Or maybe not.........
16:03FarmerEd[m]No dev console errors but no assets loading.
16:04symbioquine[m]Hmmm
16:04FarmerEd[m]from dblog uri is not a valid type for a JSON document.
16:04symbioquine[m]Interesting
16:04FarmerEd[m]/api/file/file/resource/schema
16:05symbioquine[m]I'm not sure if that's related to why Asset Link isn't working though...
16:06symbioquine[m]Does Asset Link show anything on the screen?
16:08*uploaded an image: (10KiB) < libera.ems.host/_matrix/media/r0/downloa >
16:11symbioquine[m]Is there anything interesting in the network console?
16:12symbioquine[m]e.g. lots of 404/403 errors or something like that
16:25symbioquine[m]It is suspicious that it says farmOS is unreachable
16:26FarmerEd[m]no 404's
16:27FarmerEd[m]when I clear cache I 403's and not being asked to login
16:27FarmerEd[m]but if I login and try again, only 200's
16:28FarmerEd[m]anyway, I've got to run off and do some farming
16:30symbioquine[m]Huh, weird
16:31symbioquine[m]Thanks for testing it out anyway. Maybe we can troubleshoot more another time...
16:32FarmerEd[m]Yea, can do.

< 222022-08-23⋏24 >