Comments (5)
Hi John, Welcome to the Cuis community. I'm not sure that calling #asByteString is the right thing to do in the general case. So, I need something from you. I need to reproduce what you are seeing. What url are you trying to access? If you do (WebClient httpGet: url) content.
what error do you get? Be as precise as possible, describe what you get in both cases, so anyone can help.
from cuis-smalltalk-dev.
Hi John, Welcome to the Cuis community.
Thanks!
I'm not sure that calling #asByteString is the right thing to do in the general case.
Yes, I'm not sure either. I have a feeling that SecureSocketStream is correctly encoding the data as a Unicode-encoded binary blob, and the server is expecting ASCII encoded text. I don't know enough about Unicode to verify that that's correct, but it's definitely different than the one generated from a String based URL. Perhaps there's a way to signal it as Unicode in the header.
Down to business.
I need to reproduce what you are seeing.
Of course.
Steps to reproduce the error (on both OpenSUSE Tumbleweed and Windows 10)
- Follow the installation instructions for installing via source. (Clone the Cuis-Smalltalk-Dev repository, download the VM, etc.) I'm using the
Cuis6.0-5753.image
that's provided straight out of the box. - Open the World menu and click
Open > Package Downloader
. - Answer,
Yes
, you'd like to install Package Downloader. - Try to download any package. (For the sake of completeness, I was trying to install
Tools-Finder
version 1.5 fromhernanwilkinson
's repo.) - The transcript will display
Downloading Downloading https://raw.githubusercontent.com/hernanwilkinson/cuis-finder-asWidget/master/Tools-Finder.pck.st ...
and the Debugger will open showingError: SSL connect failed with code: -5 - Process: Morphic UI - Priority: 40
.
I can get a working response by doing (WebClient httpGet: ('https://raw.githubusercontent.com/hernanwilkinson/cuis-finder-asWidget/master/Tools-Finder.pck.st' asByteString)) content
in a Workspace. This is a little bit farther down the call stack in the previously mentioned debugger session.
Some interesting Workspace examples and findings
There are four simple examples that point to some interesting (perhaps separate) issues that are easily illustrated with the Workspace. Trying to Ctrl-p
these lines does the following:
(WebClient httpGet: 'https://www.google.com') content
properly prints the contents of google.com.
(WebClient httpGet: 'http://www.google.com') content "NB: HTTP vs HTTPS"
also properly prints the contents of google.com.
(WebClient httpGet: ('https://www.google.com' asUnicodeString)) content
invokes the same SSL connect (code -5) error as the Package Downloader.
(WebClient httpGet: ('http://www.google.com' asUnicodeString)) content "NB: HTTP vs HTTPS"
raises a MessageNotUnderstood: UnicodeString>>unescapePercents
error when WebRequest tries to escape percents from the rawURL instance variable (because it is UnicodeString vs String).
from cuis-smalltalk-dev.
Hi John. Thanks for the feedback. Based on this, the WebClient tests that were failing, and some experiments, I did some changes. Please pull the repo. Be sure to install all the updates, and reload the updated WebClient and Tests-WebClient packages. Test a bit. If you see further issues, please report them here or via email to the mail list.
Thanks!
from cuis-smalltalk-dev.
Assuming it went OK. Please reopen otherwise.
from cuis-smalltalk-dev.
@jvuletich Sorry for the delay. I was in a very big rush at work, and didn't have time to come back to verify things. Everything works now. Thank you for the quick response, and sorry again for the classic report and disappear.
from cuis-smalltalk-dev.
Related Issues (20)
- Command line launch warning on macOS Ventura 13.0.1 : NSButton height 32.0 instead of max 30 HOT 1
- MessageNotUnderstood: ObjectExplorer>>autoSelectString HOT 1
- Moving the progress bar as updates load is laggy and creates temporary duplicate artifacts of the bar
- Taskbar is not topmost
- Copy to Clipboard non working
- Create missing method from Debugger HOT 2
- NonBooleanReceiver on "browse protocol" HOT 2
- Key not found error: ProtocolBrowserWindow>>browseVersions HOT 1
- Preference "Size of GUI elements" is not persisted after image saving HOT 3
- Inconsistent Dark Theme window color of Process Browser and Preferences HOT 1
- FileManTest>>testDefaultDirectory fails if the image isn't in the current directory HOT 1
- SVG requires Color-Extras which seems absent in Cuis6-2 HOT 1
- drgeo tag 23.12a-beta BrowserWindow doesNotUnderstand openBrowser problem HOT 1
- Request for V3 image support HOT 1
- Installing ^[Erudite] requires base system updates to #6247 but this system is updated to #6161 HOT 2
- DrGeo runs on Cuis 6.3 HOT 4
- Need build instructions HOT 1
- repeatedly prompts with "CuisVM.app" would like to access files in your Documents folder HOT 2
- PersonalizedTheme locks VM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cuis-smalltalk-dev.