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