Jump to content
You must now use your email address to sign in [click for more info] ×

Stocks-Tab: Unsplash not working


Recommended Posts

14 minutes ago, Chris B said:

And both are connected to the same WiFi/Network? Possibly anti-virus causing a problem? Do you have one running that you could temporary turn off? 

Yes, they are both on the same network.
I already tried disabling my antivirus and the Windows firewall but it still did not work.

Also the Unsplash website should not work if something on my PC was blocking it I guess.

Link to comment
Share on other sites

Unsplash works for me on both Windows 10 and iOS 12.3.1. The only slight oddity when testing just now was that the 18" by 12" image I chose came in at 17.987" by 11.94" in the desktop app, so there’s a gap at the bottom of the 18" by 12" canvas that I had set up to receive it. The image is 5396 by 3582 pixels @ 300dpi, so the ‘undersize’ is actually correct. I was misled by the figures I saw in the iPad app.

Please forgive me for wandering off topic, but (for the reasons explained in the post linked below) I’m disappointed that Pexels is the only other provider apart from Pixabay and Unsplash. I’d much rather see sites such as Morguefile and StockSnap.io included in the list.

Edited by Alfred
Updated info about image size

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

1 hour ago, DavidHeatherington said:

I've just registered for Unsplash and I'm getting exactly the same response "connection failed" within Affinity Photo but I can open on the website.

For what it’s worth, I’m not getting a connection failure in either the Windows version or the iPad version of Affinity Photo.

Why did you need to register, David? As far as I’m aware, all images from Unsplash are freely available to use for any purpose.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

I'm also always getting "Connection failed" for Unsplash in Stock tab in latest Photo 1.7.1.404, just like I was getting it in previous Photo 1.7.0.367.

(BTW this stock thing is a really nice addition among other features added in 1.7!)

EDIT: Forgot to mention that in the web browser searching using https://unsplash.com/ works fine.

Affinity v2 suite [Designer 2.4.0.2301 | Photo 2.4.0.2301 | Publisher 2.4.0.2301]
NUC11PHKi7C [Core i7-1165G7 @ 2.8GHz, DDR4-3200 32GB RAM, GeForce RTX 2060] | 32UN880-B | Windows 11 Pro (10.0.22631)

Affinity v1 suite [Designer 1.10.6.1665 | Photo 1.10.6.1665 | Publisher 1.10.6.1665]
ThinkPad T430 (2344-56G) [Core i7 3520M @ 2.9GHz, DDR3-1600 8GB RAM, NVS 5400M] | Windows 7 Pro 64-bit (6.1.7601)

Link to comment
Share on other sites

I gave a quick look with Wireshark into this issue and it seems it may be old TLS version used to setup secure connection.

AP sends:
TLSv1 Record Layer: Handshake Protocol: Client Hello
    Content Type: Handshake (22)
    Version: TLS 1.0 (0x0301)
    Length: 119
    Handshake Protocol: Client Hello

AP receives:
TLSv1 Record Layer: Alert (Level: Fatal, Description: Protocol Version)
    Content Type: Alert (21)
    Version: TLS 1.0 (0x0301)
    Length: 2
    Alert Message
        Level: Fatal (2)
        Description: Protocol Version (70)

I suspect there is some difference in how you setup secure connections in Win 7 and Win 10.
There are no reports of Win 10 users having this issue, right?

In practice you shouldn't use any TLS < 1.2.

Affinity v2 suite [Designer 2.4.0.2301 | Photo 2.4.0.2301 | Publisher 2.4.0.2301]
NUC11PHKi7C [Core i7-1165G7 @ 2.8GHz, DDR4-3200 32GB RAM, GeForce RTX 2060] | 32UN880-B | Windows 11 Pro (10.0.22631)

Affinity v1 suite [Designer 1.10.6.1665 | Photo 1.10.6.1665 | Publisher 1.10.6.1665]
ThinkPad T430 (2344-56G) [Core i7 3520M @ 2.9GHz, DDR3-1600 8GB RAM, NVS 5400M] | Windows 7 Pro 64-bit (6.1.7601)

Link to comment
Share on other sites

No luck with AP 1.7.1.404 here too.

@przemoc, I have no idea what TLS and stuff is.

10 hours ago, przemoc said:

I suspect there is some difference in how you setup secure connections in Win 7 and Win 10.
There are no reports of Win 10 users having this issue, right?

In practice you shouldn't use any TLS < 1.2.

Do you mean that Serif has to change the setup or the TLS or would that be something that I had to do in my version of Windows?
If the latter, how would I do that?

Cheers

Link to comment
Share on other sites

TLS= Transport Layer and Security. How to check for the version you're using:

https://knowledge.digicert.com/generalinformation/INFO3299.html

Affinity Photo 2.4..; Affinity Designer 2.4..; Affinity Publisher 2.4..; Affinity2 Beta versions. Affinity Photo,Designer 1.10.6.1605 Win10 Home Version:21H2, Build: 19044.1766: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 3301 Mhz, 6 Core(s), 12 Logical Processor(s);32GB Ram, Nvidia GTX 3070, 3-Internal HDD (1 Crucial MX5000 1TB, 1-Crucial MX5000 500GB, 1-WD 1 TB), 4 External HDD

Link to comment
Share on other sites

If this is a Windows 7 and TLS issue see this article

It's possible TLS may not be enabled by default on your Window 7 OS so you may need to activate it manually

https://support.cybersource.com/s/article/How-do-I-enable-TLS-1-2-on-Windows-7

 

 

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

51 minutes ago, carl123 said:

If this is a Windows 7 and TLS issue see this article

It's possible TLS may not be enabled by default on your Window 7 OS so you may need to activate it manually

https://support.cybersource.com/s/article/How-do-I-enable-TLS-1-2-on-Windows-7

 

 

Not the issue.  I just checked and it is same for Photo as well, others work unsplash just gives connection failed error.

Link to comment
Share on other sites

16 hours ago, Terry44 said:

I have the same issue in the newly released Publisher 1.7.1.404.   

Unsplash Connection Failed but the other two works fine.

Same here, just as in Photo. Hope this gets fixed soon

 

EDIT:
I entered the keys from the link carl123 provided manually into the registry.
After restart of Publisher, Unsplash is now working.
Thank you very much!

https://support.cybersource.com/s/article/How-do-I-enable-TLS-1-2-on-Windows-7

Link to comment
Share on other sites

On 6/17/2019 at 10:57 PM, przemoc said:

I gave a quick look with Wireshark into this issue and it seems it may be old TLS version used to setup secure connection.

AP sends:
TLSv1 Record Layer: Handshake Protocol: Client Hello
    Content Type: Handshake (22)
    Version: TLS 1.0 (0x0301)
    Length: 119
    Handshake Protocol: Client Hello

AP receives:
TLSv1 Record Layer: Alert (Level: Fatal, Description: Protocol Version)
    Content Type: Alert (21)
    Version: TLS 1.0 (0x0301)
    Length: 2
    Alert Message
        Level: Fatal (2)
        Description: Protocol Version (70)

I suspect there is some difference in how you setup secure connections in Win 7 and Win 10.
There are no reports of Win 10 users having this issue, right?

In practice you shouldn't use any TLS < 1.2.

Great analysis, thank you. 

Link to comment
Share on other sites

Thanks, Mark.

I also confirm that editing registry as suggested in link provided by carl123 workarounds the issue. Thanks!

There is a useful tidbit there that I wasn't aware, which is worth quoting explicitly here.

Quote

Windows 7 supports TLS 1.1 and TLS 1.2. However, these protocol versions are not enabled on Windows 7 by default. On Windows 8 and higher, these protocols are enabled by default.

Basically adding following stuff in registry is sufficient to make Unsplash work in AP:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client]
"DisabledByDefault"=dword:00000000

I call it a workaround, because I think it should be fixed in AP without need for changing user's registry. Even if TLS 1.2 is disabled by default in Secure Channel (schannel) as configured in Windows 7 out-of-the-box, it remains supported, so it should be possible to enable it in programmatic way from any application that needs it.

Affinity v2 suite [Designer 2.4.0.2301 | Photo 2.4.0.2301 | Publisher 2.4.0.2301]
NUC11PHKi7C [Core i7-1165G7 @ 2.8GHz, DDR4-3200 32GB RAM, GeForce RTX 2060] | 32UN880-B | Windows 11 Pro (10.0.22631)

Affinity v1 suite [Designer 1.10.6.1665 | Photo 1.10.6.1665 | Publisher 1.10.6.1665]
ThinkPad T430 (2344-56G) [Core i7 3520M @ 2.9GHz, DDR3-1600 8GB RAM, NVS 5400M] | Windows 7 Pro 64-bit (6.1.7601)

Link to comment
Share on other sites

@przemoc, thanks once again for your insight. I agree modifying the Registry is not great, but as we use .NET, we follow the recommended advise which is to let the OS decide the relevant TLS version:

https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls

Quote

We recommend that you:

  • Target .NET Framework 4.7 or later versions on your apps. Target .NET Framework 4.7.1 or later versions on your WCF apps.
  • Do not specify the TLS version. Configure your code to let the OS decide on the TLS version.
  • Perform a thorough code audit to verify you're not specifying a TLS or SSL version.

When your app lets the OS choose the TLS version:

  • It automatically takes advantage of new protocols added in the future, such as TLS 1.3.
  • The OS blocks protocols that are discovered not to be secure.

Unfortunately my recommended suggestion here is to upgrade from Windows 7. After all, after January 2020, it will be out of support from Microsoft.

Link to comment
Share on other sites

For those not familiar with adding stuff to the registry, Alfred has provided instructions in the thread below

https://forum.affinity.serif.com/index.php?/topic/89954-stock-tab/&tab=comments#comment-476930

Please ensure you are on Windows 7 for this fix to apply to you

If you are unable to access any Stock Panel images and are on Windows 8.1, Windows 10, (or a Mac) then this fix is not for you and you should investigate other reasons for your "issues".

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.