[09:43:31] | <FarmerEd[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. |
[09:44:22] | <symbioquine[m]> | Hmmm, the server architecture shouldn't matter as long as you're installing the already built module... |
[09:44:59] | <FarmerEd[m]> | Could be a minor difference in a library somewhere? |
[09:45:12] | <FarmerEd[m]> | Uncaught (in promise) SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON |
[09:45:18] | <symbioquine[m]> | It's pretty much all client-side JS code that runs in the browser |
[09:45:31] | <FarmerEd[m]> | from chrome dev console |
[09:45:55] | <symbioquine[m]> | FarmerEd[m]: That sounds like an issue, but probably not Arm/Intel related |
[09:46:03] | <mstenta[m]> | Sounds like maybe an error is occurring serving the JSON? |
[09:46:06] | <mstenta[m]> | So it's showing Drupal error html instead |
[09:46:26] | <mstenta[m]> | Can you go to the path directly Farmer Ed - or look at `/admin/reports/dblog` - might give more info |
[09:46:38] | <symbioquine[m]> | Can you share the url that is occurring for? (minus the domain if you want) |
[09:49:40] | <FarmerEd[m]> | hmm, nothing in the log that I can see. |
[09:50:29] | <mstenta[m]> | try going to the URL for the JSON file directly in your browser |
[09:50:32] | <mstenta[m]> | see what shows up |
[09:51:24] | <symbioquine[m]> | Actually, it might not be obvious what the URL is... since that error would occur in the JS code... |
[09:51:57] | <mstenta[m]> | ah |
[09:51:57] | <symbioquine[m]> | Maybe for a start, what page are you on? |
[09:52:45] | <FarmerEd[m]> | Loading server schema |
[09:53:15] | <symbioquine[m]> | ah, so something like `/alink/asset/5`? |
[09:53:59] | <FarmerEd[m]> | This is highlighted in assetlink.js |
[09:53:59] | <FarmerEd[m]> | const relatedSchema = await fetchJson(serverRelatedSchema.targetSchema); |
[09:55:27] | <FarmerEd[m]> | Not getting the same issue on a virtual box version of the site running on my laptop |
[09:55:39] | <symbioquine[m]> | > <@farmer-ed:matrix.org> This is highlighted in assetlink.js |
[09:55:39] | <symbioquine[m]> | > const relatedSchema = await fetchJson(serverRelatedSchema.targetSchema); |
[09:55:39] | <symbioquine[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... |
[09:56:29] | <symbioquine[m]> | https://github.com/symbioquine/farmOS_asset_link/commit/bd21eff9c647cefd... |
[09:58:20] | <symbioquine[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. |
[09:59:03] | <FarmerEd[m]> | ah OK, I could be running 2 different versions here |
[10:00:13] | <symbioquine[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 :) |
[10:01:26] | <FarmerEd[m]> | obviously up to date on Arm but not x86 |
[10:02:01] | <FarmerEd[m]> | anyway thanks for the quick explanation |
[10:05:48] | <symbioquine[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. |
[11:38:03] | <symbioquine[m]> | Should be fixed now if you upgrade to 0.5.4 - https://farmos.discourse.group/t/asset-link-dev-log/1175/21?u=symbioquine |
[11:38:43] | <FarmerEd[m]> | see that.... |
[11:38:43] | <FarmerEd[m]> | Took your time 🤣 |
[11:46:09] | <FarmerEd[m]> | yep, that fixed it |
[12:03:39] | <FarmerEd[m]> | Or maybe not......... |
[12:03:40] | <FarmerEd[m]> | No dev console errors but no assets loading. |
[12:04:08] | <symbioquine[m]> | Hmmm |
[12:04:16] | <FarmerEd[m]> | from dblog uri is not a valid type for a JSON document. |
[12:04:29] | <symbioquine[m]> | Interesting |
[12:04:34] | <FarmerEd[m]> | /api/file/file/resource/schema |
[12:05:59] | <symbioquine[m]> | I'm not sure if that's related to why Asset Link isn't working though... |
[12:06:07] | <symbioquine[m]> | Does Asset Link show anything on the screen? |
[12:08:02] | <FarmerEd[m]> | ACTION uploaded an image: (10KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/xcRYQgRTVkB... > |
[12:11:25] | <symbioquine[m]> | Is there anything interesting in the network console? |
[12:12:29] | <symbioquine[m]> | e.g. lots of 404/403 errors or something like that |
[12:25:07] | <symbioquine[m]> | It is suspicious that it says farmOS is unreachable |
[12:26:53] | <FarmerEd[m]> | no 404's |
[12:27:15] | <FarmerEd[m]> | when I clear cache I 403's and not being asked to login |
[12:27:48] | <FarmerEd[m]> | but if I login and try again, only 200's |
[12:28:18] | <FarmerEd[m]> | anyway, I've got to run off and do some farming |
[12:30:06] | <symbioquine[m]> | Huh, weird |
[12:31:17] | <symbioquine[m]> | Thanks for testing it out anyway. Maybe we can troubleshoot more another time... |
[12:32:31] | <FarmerEd[m]> | Yea, can do. |