<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom connector returns empty header in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2711798#M37995</link>
    <description>&lt;P&gt;Dear Rico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply, but I believe something else is at play here. At some point, I simply rebuild the connector, and all was fine again, that was untill I added a method at the very start of the connector ( so preceding the original contents method&amp;nbsp; ). After that, the response was mangled again. Interestingly, once&amp;nbsp; removed the method all was fine again. I've toyed around with a bit ( to try and get a feel for the problem ), but in the end I had deadlines so I focussed on getting it done so I don't have a complete reproduction ... but it's rather unstable when it comes to moving that first content method around ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vincent&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 07:46:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-19T07:46:29Z</dc:date>
    <item>
      <title>Custom connector returns empty header</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2690380#M37810</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently trying to get a custom connector working due to an API returning information in the header of a response that is required to fetch all the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially, the following snippit of code worked and I got the same headers as when using postman&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vincent_k_0-1660057029706.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/762585iA1FFB3CA0D2BCAE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vincent_k_0-1660057029706.png" alt="vincent_k_0-1660057029706.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vincent_k_1-1660057085586.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/762589iFBE0E8FB8E2CB618/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vincent_k_1-1660057085586.png" alt="vincent_k_1-1660057085586.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, something has changed. I'm not sure what, but when I now test this, the only header I'm getting is&amp;nbsp; 'content-type'....&lt;/P&gt;&lt;P&gt;I'm not really sure where to begin with this as postman is returning the proper values, and this has worked before and AFAIK I didn't change anything here ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully somebody can point me in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 14:59:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2690380#M37810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-09T14:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector returns empty header</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2702324#M37901</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you may refer to blog as below to have a try.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://powerusers.microsoft.com/t5/General-Power-Automate/Custom-connector-action-with-x-www-form-urlencoded-content-type/m-p/397616/highlight/false#M33774" target="_blank" rel="noopener"&gt;https://powerusers.microsoft.com/t5/General-Power-Automate/Custom-connector-action-with-x-www-form-u...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Click "&lt;EM&gt;&lt;STRONG&gt;New Policy&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/LI&gt;
&lt;LI&gt;Name your policy&lt;/LI&gt;
&lt;LI&gt;Select "&lt;EM&gt;&lt;STRONG&gt;Set HTTP header&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/LI&gt;
&lt;LI&gt;Select the Operations (Actions) that require this header&lt;/LI&gt;
&lt;LI&gt;Header name: "&lt;EM&gt;&lt;STRONG&gt;content-type&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/LI&gt;
&lt;LI&gt;Header Value:&amp;nbsp;"&lt;EM&gt;&lt;STRONG&gt;application/x-www-form-urlencoded&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/LI&gt;
&lt;LI&gt;Action if header exists: "&lt;EM&gt;&lt;STRONG&gt;override&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/LI&gt;
&lt;LI&gt;Run policy on: "&lt;EM&gt;&lt;STRONG&gt;Request&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 08:08:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2702324#M37901</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T08:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector returns empty header</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2711798#M37995</link>
      <description>&lt;P&gt;Dear Rico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply, but I believe something else is at play here. At some point, I simply rebuild the connector, and all was fine again, that was untill I added a method at the very start of the connector ( so preceding the original contents method&amp;nbsp; ). After that, the response was mangled again. Interestingly, once&amp;nbsp; removed the method all was fine again. I've toyed around with a bit ( to try and get a feel for the problem ), but in the end I had deadlines so I focussed on getting it done so I don't have a complete reproduction ... but it's rather unstable when it comes to moving that first content method around ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vincent&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 07:46:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2711798#M37995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-19T07:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector returns empty header</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2713203#M38002</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;, I think you need to way that you have included you key in the Web.Contents function.&amp;nbsp; Try this instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
   AuthKey = "x-api-key = ####",
   Source = Web.Contents(url, 
        [
          Headers = 
                [
                   Authorisation= AuthKey,
                   #"Content-Type"="application/json"
                ],
          RelativePath = path,
          Content = Text.....    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 17:18:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2713203#M38002</guid>
      <dc:creator>Daryl-Lynch-Bzy</dc:creator>
      <dc:date>2022-08-19T17:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector returns empty header</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2723333#M38133</link>
      <description>&lt;P&gt;Dear Daryl,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply, but I'm afraid that's not it. As I mentioned below here, initially the connector worked ( returning me all the expected headers ). And actually, it is working again after I removed a method that I put before the original contents method. Another funny thing I noticed, when examining the raw data coming in, the headers are THERE...there're just not shown and/or recognized ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 12:51:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2723333#M38133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-24T12:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector returns empty header</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2723340#M38134</link>
      <description>&lt;P&gt;Hey Rico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did this, but this didn't make a difference. As I indicated earlier, it did work before and after deleting a method that I put before the original contents method I worked again. Also, I checked the raw data coming in and I could see that even when the connector didn't show me the headers. They actually were there, so there is a very odd bug at play here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 12:53:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-returns-empty-header/m-p/2723340#M38134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-24T12:53:21Z</dc:date>
    </item>
  </channel>
</rss>

