<p dir="auto">Trying to load image in fragment but it doesn't work.</p>
<p dir="auto">It says "Failed to load model" under <strong>onException</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="                Glide.with(PImageFragment.this).load(Utility.productBaseURL + image_url)
                .placeholder(R.drawable.ic_placeholder)
                .error(R.drawable.ic_placeholder)
                .diskCacheStrategy(DiskCacheStrategy.ALL)
                .crossFade()
                .listener(new RequestListener&lt;String, GlideDrawable&gt;() {
                    @Override
                    public boolean onException(Exception e, String model, Target&lt;GlideDrawable&gt; target,       boolean isFirstResource) {

                        Utility.showLog(TAG,&quot;onFailed&quot;);
                        Utility.showLog(TAG, e.getLocalizedMessage());

                        return false;
                    }

                    @Override
                    public boolean onResourceReady(GlideDrawable resource, String model, Target&lt;GlideDrawable&gt; target, boolean isFromMemoryCache, boolean isFirstResource) {

                        Utility.showLog(TAG, &quot;onResource Ready&quot;);
                        return false;
                    }
                })
                .into(ivProductImage);"><pre class="notranslate">                <span class="pl-v">Glide</span><span class="pl-kos">.</span><span class="pl-en">with</span><span class="pl-kos">(</span><span class="pl-v">PImageFragment</span><span class="pl-kos">.</span><span class="pl-c1">this</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">(</span><span class="pl-v">Utility</span><span class="pl-kos">.</span><span class="pl-c1">productBaseURL</span> <span class="pl-c1">+</span> <span class="pl-s1">image_url</span><span class="pl-kos">)</span>
                <span class="pl-kos">.</span><span class="pl-en">placeholder</span><span class="pl-kos">(</span><span class="pl-v">R</span><span class="pl-kos">.</span><span class="pl-c1">drawable</span><span class="pl-kos">.</span><span class="pl-c1">ic_placeholder</span><span class="pl-kos">)</span>
                <span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-v">R</span><span class="pl-kos">.</span><span class="pl-c1">drawable</span><span class="pl-kos">.</span><span class="pl-c1">ic_placeholder</span><span class="pl-kos">)</span>
                <span class="pl-kos">.</span><span class="pl-en">diskCacheStrategy</span><span class="pl-kos">(</span><span class="pl-v">DiskCacheStrategy</span><span class="pl-kos">.</span><span class="pl-c1">ALL</span><span class="pl-kos">)</span>
                <span class="pl-kos">.</span><span class="pl-en">crossFade</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
                <span class="pl-kos">.</span><span class="pl-c1">listener</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">RequestListener</span><span class="pl-c1">&lt;</span><span class="pl-v">String</span><span class="pl-kos">,</span> <span class="pl-v">GlideDrawable</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                    @<span class="pl-v">Override</span>
                    <span class="pl-c1">public</span> <span class="pl-s1">boolean</span> <span class="pl-c1">onException</span><span class="pl-kos">(</span><span class="pl-v">Exception</span> <span class="pl-s1">e</span><span class="pl-kos">,</span> <span class="pl-v">String</span> <span class="pl-s1">model</span><span class="pl-kos">,</span> <span class="pl-v">Target</span><span class="pl-c1">&lt;</span><span class="pl-ent">GlideDrawable</span><span class="pl-c1">&gt;</span> target,       boolean isFirstResource) <span class="pl-kos">{</span>

                        <span class="pl-v">Utility</span><span class="pl-kos">.</span><span class="pl-en">showLog</span><span class="pl-kos">(</span><span class="pl-c1">TAG</span><span class="pl-kos">,</span><span class="pl-s">"onFailed"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                        <span class="pl-v">Utility</span><span class="pl-kos">.</span><span class="pl-en">showLog</span><span class="pl-kos">(</span><span class="pl-c1">TAG</span><span class="pl-kos">,</span> <span class="pl-s1">e</span><span class="pl-kos">.</span><span class="pl-en">getLocalizedMessage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

                        <span class="pl-k">return</span> <span class="pl-c1">false</span><span class="pl-kos">;</span>
                    <span class="pl-kos">}</span>

                    @Override
                    public boolean onResourceReady(GlideDrawable resource, String model, Target<span class="pl-c1">&lt;</span><span class="pl-ent">GlideDrawable</span><span class="pl-c1">&gt;</span> target, boolean isFromMemoryCache, boolean isFirstResource) <span class="pl-kos">{</span>

                        <span class="pl-v">Utility</span><span class="pl-kos">.</span><span class="pl-en">showLog</span><span class="pl-kos">(</span><span class="pl-c1">TAG</span><span class="pl-kos">,</span> <span class="pl-s">"onResource Ready"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                        <span class="pl-k">return</span> <span class="pl-c1">false</span><span class="pl-kos">;</span>
                    <span class="pl-kos">}</span>
                <span class="pl-kos">}</span><span class="pl-kos">)</span>
                <span class="pl-kos">.</span><span class="pl-s1">into</span><span class="pl-kos">(</span><span class="pl-s1">ivProductImage</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Glide Version</strong>: 3.7.0</p>
<p dir="auto">Hello guys,</p>
<p dir="auto">We used a self-signed HTTPS cert on debug env, so may need to do litte thing on UrlConnection inside HttpUrlConnectionFactory under HttpUrlFetcher, is there anyway to configure/replace default DEFAULT_CONNECTION_FACTORY?</p>
<p dir="auto">OR I have to rewrite a new module and stub by install module?</p>
<p dir="auto">Thank you.</p>