Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to format/access website: "DaxFormatter.com Error: Invalid URI: the hostname could not be parsed" #205

Closed
cosminioan opened this issue Jul 29, 2019 · 16 comments

Comments

@cosminioan
Copy link

hi Darren,
for some reason, I am getting the error above on a Windows 7 laptop.
I tried to do ipconfig/dnsflush, I tried to change the DNS to Google or my ISP, still nothing.

In options, I tried unchecking the Proxy (system), restarted the app, still nothing (I do not use any proxies.

any thoughts on what might be wrong?
thanks much,
Cos

@cosminioan cosminioan changed the title DaxFormatter.com Error: Invalid URI: the hostname could not be parsed Error trying to format/access website: "DaxFormatter.com Error: Invalid URI: the hostname could not be parsed" Jul 29, 2019
@IanHopewell
Copy link

Hi Darren & Cos,

I can confirm the same error for our team as well.

Regards Ian.

@cosminioan
Copy link
Author

cosminioan commented Jul 30, 2019

hi Ian, funny, not sure what is going on as:
a. On another Windows 10 laptop, on the same network, I'm using DaxStudio without any problem!
b. Moreover, in a VMWare guest using Win 2012R2, within the same problematic Windows 7 host, DaxStudio also works very well! (go figure).
c. I tried DaxStudio 2.9.0, 2.9.1 and 2.9.2, on the problematic Windows 7 machine, with same problem (don't think it's a DAXStudio problem).

So, I'm a bit at a loss, whether it is Windows 7 generally, or my laptop, or some Proxy or DNS settings, as I've done ipconfig/flushdns,

I've also tried to add the IP of the daxformatter.com site on the hosts file, I've disabled the Norton firewall (the Windows firewall is disabled), and still no-go.

Any help, anyone, is much appreciated, not sure if it's worth fully qualifying the site within DAXStudio... perhaps that http://www.daxformatter.com may help !?

thanks bunches,
Cos

@dgosbell
Copy link
Contributor

I'm not really sure what could cause this. I've just double checked this with and without going through a proxy and it's working for me. The uri we use for daxformatter.com is a constant, it's just the body of the request that changes. It could maybe be a Windows 7 specific issue.

Is this a new problem on a machine where this feature used to work?

Or is this a new install of DAX Studio and this feature has never worked on this machine?

@cosminioan
Copy link
Author

cosminioan commented Jul 30, 2019

unfortunately I have not used SSAS/DAXStudio for years and now getting back to it, due to a job change, so not sure if DAXStudio has ever worked on the now problematic Windows7 machine.

I have just installed a brand spanking new Windows 7 Pro guest within my problematic Windows 7 Pro host, and voila, it appears that it is NOT working.... so it could be an OS related issue. (in a Win2k8 guest install within the same host, DAXStudio works fine).

@IanHopewell, are you having the same issue, specifically on Windows 7 (64 bit)?

@dgosbell Darren, would it be possible to build a quick beta with the fully qualified "http://www.daxformatter.com" (in case that's not what's actually stuffed in and only "daxformatter.com" is currently being issued?) I think the older OS's are a tad handicapped, as far as needing to know whether it is an ftp, or http or https call, I'm venturing to say).

(unfortunately, I am probably one of the last holdout users, as far as needing to use Windows7, due to large number of software programs installed, and a great Dell laptop, M6700, with 32gb RAM, which is still serving me very well, after 5+ years.) :-(

many thanks, Darren... and Ian, for confirmation,
Cos

@dgosbell
Copy link
Contributor

@cosminioan - the URI we use is already fully qualified so that is not the issue. We are using https:// though so it could be an issue with encryption/TLS 1.2 support as Win 7 does not support this by default - although I would expect an error relating to encryption support if that was the issue.

@cosminioan
Copy link
Author

ok, thanks Darren. Looks like I may have to settle for working within any of my Win 10/Win2kR2 guests then, as I can't find any other setting working w/ Windows 7.

thanks again --

@dgosbell
Copy link
Contributor

@cosminioan - could you try enabling debug logging using the following instructions, then try to format something with DAX Studio and shut it down and attach the log file to this issue? I'm not sure if it will capture much more detail than the current error message, but it's worth a try.

Otherwise I'll need to build a new Win7 test VM as I don't have a working one handy at the moment.

@cosminioan
Copy link
Author

cosminioan commented Jul 31, 2019

PROBLEM SOLVED!!
very funny, now! In a great way! As soon as I held down the left Shift key to start the app in Debug mode, it's now working fine with no problem (2.9.0 and 2.9.2). Problem magically solved somehow, although I see in the log something about log file permission.... not sure if that had something to do with it. Here's the (last) log file though.

many thanks Darren,
Cosmin
DaxStudio-20190731.zip

@IanHopewell
Copy link

Yes, also running Windows 7 on one of the workstations, it is working on the others Windows 10. The debug did not correct the error and this is in the logs:

2019-07-31 12:00:29.077 +01:00 [Debug] "DocumentTabViewModel" "OpenFileInActiveDocumentWindow" "Opening C:\Workspace\data-dax-code\Trading Action Plan Audit.dax"
2019-07-31 12:00:31.697 +01:00 [Debug] "DaxFormatter" "PrimeConnectionAsync" "Start"
2019-07-31 12:00:32.137 +01:00 [Error] "DaxFormatter" "PrimeConnectionAsync" "The underlying connection was closed: An unexpected error occurred on a send."
2019-07-31 12:00:32.137 +01:00 [Debug] "DaxFormatter" "PrimeConnectionAsync" "End"
2019-07-31 12:00:32.140 +01:00 [Error] "DaxFormatter" "CallDaxFormatterAsync" "Invalid URI: The hostname could not be parsed."
2019-07-31 12:00:32.140 +01:00 [Debug] "DaxFormatter" "CallDaxFormatterAsync:End"
2019-07-31 12:00:32.150 +01:00 [Error] "DocumentViewModel" "FormatQuery" "One or more errors occurred."
2019-07-31 12:00:57.434 +01:00 [Information] "MetadataPaneViewModel" "RefreshTables" "Metadata Refreshed (duration: 29170ms)"
2019-07-31 12:01:26.600 +01:00 [Debug] "ShellViewModel" "OnApplicationActivated"
2019-07-31 12:01:26.600 +01:00 [Debug] "RibbonViewModel" "Handle:ApplicationActivatedEvent:Start" ApplicationActivatedEvent { }
2019-07-31 12:01:27.037 +01:00 [Debug] "RibbonViewModel" "RefreshConnectionDetails" "" ""
2019-07-31 12:01:27.040 +01:00 [Debug] "RibbonViewModel" "Handle:ApplicationActivatedEvent:End" ApplicationActivatedEvent { }
2019-07-31 12:01:29.682 +01:00 [Debug] "DocumentViewModel" "OnDeactivated (close)" Close:True Doc:"Trading Action Plan Audit.dax"
2019-07-31 12:01:30.026 +01:00 [Information] ============ DaxStudio Shutdown =============
2019-07-31 12:01:52.561 +01:00 [Error] "DaxFormatter" "PrimeConnectionAsync" "The underlying connection was closed: An unexpected error occurred on a send."

We are in the process of upgrading developer machines and all will be Windows 10 in the coming weeks.

Regards
Ian

@dgosbell
Copy link
Contributor

@cosminioan The debug logging does not change any behaviour, it just outputs extra messages to the logs. So I don't think this fixed your issue, but based on what I found it's possible that a group policy or registry change or the installation of a security patch could have affected this.

@IanHopewell That last error line from the PrimeConnectionsAsync method about the underlying connection being closed is one of the errors you see if a machine attempts to use the older TLS 1.0 on a HTTPS site that only supports TLS 1.2

I've just finished building a new Win 7 SP1 VM and could reproduce this error. I've made a change to force the web requests to use TLS 1.2 encryption (which is the default for Operating Systems after Win 7) and this appears to fix this issue on my test VM.

I have a beta build available here if you want to try this for yourselves.

@cosminioan
Copy link
Author

great, although I'm getting this resource error:
DaxStudioError

@dgosbell
Copy link
Contributor

Sorry, I have another issue I'm working on related to theming. (the build off the build server crashes the same way on my test VM) I've fixed both issues now and the latest beta for 2.9.3 is available here

@cosminioan
Copy link
Author

almost same error as above, except without Stack Trace
DaxStudioError2

thx

@dgosbell
Copy link
Contributor

dgosbell commented Aug 1, 2019

Sorry, I must have accidentally copy the same download link twice - that version is showing the same build as the previous one (2.9.3.128) I fixed the theme issue in 2.9.3.129 and that download for that one is here

@cosminioan
Copy link
Author

looks good now. thanks bunches, Darren! :-)

@IanHopewell
Copy link

Thanks, Darren, it is now working and formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants