<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Ezequiel,<div class=""><br class=""></div><div class="">I am using the same instructions for loading the current Seaside master in a GsDevkit stone, so let’s see what is happening in your case…</div><div class=""><br class=""></div><div class="">Which version of GemStone are you using?</div><div class=""><br class=""></div><div class="">From the variables you are quoting, it seems that you are trying to load the (old) Seaside31 project.</div><div class="">That should not be happening of the project was defined correctly. So, the root cause is probably because the first step is failing.</div><div class=""><br class=""></div><div class="">Can you give more info on what is ‘failing’ when you type:</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>project install --url=<a href="http://gsdevkit.github.io/GsDevKit_home/Seaside32.ston" class="">http://gsdevkit.github.io/GsDevKit_home/Seaside32.ston</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Johan</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 7 Jan 2022, at 01:59, Ezequiel R. Aguerre via Glass <<a href="mailto:glass@lists.gemtalksystems.com" class="">glass@lists.gemtalksystems.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi everyone! I'm experimenting a little bit with GemStone. I tried to install Seaside but the instructions are not working for me.<div class=""><br class=""></div><div class="">I've used the scripts of the GsDevKit_home to setup everything, I can launch tODE successfully, but when I type the following commands in the shell, they don't work.</div><div class=""><br class=""></div><div class="">The first one:</div><div class=""><br class=""></div><div class=""><font face="monospace" class="">project install --url=<a href="http://gsdevkit.github.io/GsDevKit_home/Seaside32.ston" class="">http://gsdevkit.github.io/GsDevKit_home/Seaside32.ston</a></font><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><br class=""></div><div class="">This one fails, but it also says something about Seaside being already installed... so I just skip it.</div><div class=""><br class=""></div><div class="">But then, this command fails:</div><div class=""><br class=""></div><font face="monospace" class="">project load --loads=`#('Welcome' 'Development' 'Zinc Project' 'Examples')` Seaside3</font><div class=""><br class=""></div><div class="">It raises an exception about accessing an array with a non-integer index.</div><div class=""><br class=""></div><div class="">It looks like there must be something outdated, but I'm not sure. So I can't load Seaside to start playing with it.</div><div class="">If I right-click "load" on the project list, it happens the same thing.</div><div class=""><br class=""></div><div class="">The following is an investigation on the issue in case it clarifies anything:</div><div class=""><br class=""></div><div class="">The error is raised in the following method:</div><div class=""><br class=""></div><div class=""><font face="monospace" class="">MetacelloGemStonePlatform>>downloadJSON: url eTagsCache: eTagsCache eTagsKey: eTagsKey username: username pass: pass</font></div><div class=""><font face="monospace" class=""> "(code ...)"</font></div><div class=""><font face="monospace" class=""> (status beginsWith: '403')</font></div><font face="monospace" class=""> ifTrue: [ <br class=""> | jsonObject |<br class=""> "Oh snap! Rate limit exceeded"<br class=""> jsonObject := MCFileTreeJsonParser parse: payload.<br class=""> self error: (jsonObject at: 'message') ].</font></div><div dir="ltr" class=""><font face="monospace" class=""> "(more code...)"</font><br class=""><div class=""><br class=""></div><div class=""><font face="monospace" class="">jsonObject</font> is actually an array, so <font face="monospace" class="">jsonObject at: 'message'</font> raises an excepction.</div><div class=""><br class=""></div><div class="">These are the values of the variables:</div><div class=""><br class=""></div><div class=""><font face="monospace" class=""> - url: '<a href="https://api.github.com/repos/GsDevKit/Seaside31/tags" class="">https://api.github.com/repos/GsDevKit/Seaside31/tags</a>'</font></div><div class=""><font face="monospace" class=""> - username: nil</font></div><div class=""><font face="monospace" class=""> - pass: nil</font></div><div class=""><font face="monospace" class=""> - eTagsKey: 'GsDevKit/Seaside31'</font></div><div class=""><font face="monospace" class=""> - eTagsCache: aDictionary( 'GsDevKit/Seaside31' -> aDictionary() )</font></div><div class=""><font face="monospace" class=""> - jsonObject: an array of dictionaries, each dictionary has the following information:</font></div><div class=""><font face="monospace" class=""> - commit: a dictionary with a "sha" and "url" keys</font></div><div class=""><font face="monospace" class=""> - name: a string like 'v3.1.4.2-gs'</font></div><div class=""><font face="monospace" class=""> - node_id: a base64 encoded string, when decoded is something like: '03:Ref8633068:refs/tags/v3.1.4.2-gs'</font></div><div class=""><font face="monospace" class=""> - tarball_url: a url</font></div><div class=""><font face="monospace" class=""> - zipball_url: a url</font></div><div class=""> </div><div class=""><br class=""></div><div class="">I don't know how to use the debugger yet, so I can't step through the code. But I think the problem is actually up above, in the following line:</div><div class=""><br class=""></div><div class=""><font face="monospace" class="">status := headerDict at: 'status' ifAbsent: [ '403' ].</font><br class=""></div><div class=""><br class=""></div><div class=""><font face="arial, sans-serif" class="">Because the server is actually responding correctly, if I "curl <a href="https://api.github.com/repos/GsDevKit/Seaside31/tags" class="">https://api.github.com/repos/GsDevKit/Seaside31/tags</a>" it works just fine.</font></div><div class=""><font face="arial, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, sans-serif" class="">And the following method:</font></div><div class=""><font face="arial, sans-serif" class=""><br class=""></font></div><div class=""><font face="monospace" class="">MetacelloGemStonePlatform>>extractHTTPHeader: aStream do: aBlock</font></div><div class=""><font face="arial, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, sans-serif" class="">explicitly skips the first HTTP line (the status):</font></div><div class=""><font face="arial, sans-serif" class=""><br class=""></font></div><div class=""><font face="monospace" class=""> line := aStream nextLine. "strip status"</font><font face="arial, sans-serif" class=""><br class=""></font></div><div class=""><br class=""></div><div class="">I tried adding a line like the following:</div><div class=""><br class=""></div><font face="monospace" class=""> header at: 'status' put: (line substrings at: 2).</font><br class=""><div class=""><br class=""></div><div class="">But then I have a problem with an "X-Ratelimit-Remaining" header.</div><div class=""><br class=""></div><div class="">So I'm not sure... I think there's something outdated somewhere... I don't know how to proceed.</div><div class=""><br class=""></div><div class="">Or maybe this kind of things are better asked on the Github issue tracker? I don't know, I didn't want to open an issue that may not be an issue at all.</div><div class=""><br class=""></div><div class="">Oh, before I forget, I'm running Arch Linux 64 bits, maybe the problem is my environment.</div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">--</div>Ezequiel R. Aguerre</div></div></div></div></div>
_______________________________________________<br class="">Glass mailing list<br class=""><a href="mailto:Glass@lists.gemtalksystems.com" class="">Glass@lists.gemtalksystems.com</a><br class="">https://lists.gemtalksystems.com/mailman/listinfo/glass<br class=""></div></blockquote></div><br class=""></div></body></html>