<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>server connect fails. with -22</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124326/server-connect-fails-with--22</link><description>The error started coming after updating the sdk version from ncs v.2.9 to ncs v3.1 
 
 [00:06:58.439,514] &amp;lt;inf&amp;gt; _https: Log:Sock before -1 [00:06:58.484,649] &amp;lt;inf&amp;gt;_https: Log: Sock after 11 [00:06:58.603,942] &amp;lt;err&amp;gt; _https: Log: Connecting to server failed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Sep 2025 11:30:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124326/server-connect-fails-with--22" /><item><title>RE: server connect fails. with -22</title><link>https://devzone.nordicsemi.com/thread/548587?ContentTypeID=1</link><pubDate>Fri, 12 Sep 2025 11:30:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eb1aeef-87f0-41a5-802f-ef96143d7a6d</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you read the migration guide between the different releases?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_guide_3.0.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_guide_3.0.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_guide_3.1.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_guide_3.1.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;From a quick glance I can see you have not fixed this&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_guide_3.0.html#wi-fi"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_guide_3.0.html#wi-fi&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:06:58.439,514] &amp;lt;inf&amp;gt; _https: Log:Sock before -1&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:06:58.484,649] &amp;lt;inf&amp;gt;_https: Log: Sock after 11&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:06:58.603,942] &amp;lt;err&amp;gt; _https: Log: Connecting to server failed, err: 22, Invalid argument&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:06:58.605,407] &amp;lt;err&amp;gt; _https: Log: Connection to server failed: -22&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:06:58.605,468] &amp;lt;inf&amp;gt; _wifi: Reconnecting Wi-Fi&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is -1 sock before and 11 sock after?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does your application only fail with a specific hotspot or all?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What are you trying to parse that gives you error -22?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>