SteemPlus [3.0.0.1] - Wallet History doesn't load, mixed content error

in #utopian-io6 years ago

Project Information

Repository: https://github.com/stoodkev/SteemPlus/
Project Name: SteemPlus
Publisher: @stoodkev

Expected behavior

When visiting my wallet I should be able to filter and search my transaction history. It should look like this:

image.png

Actual Behaviour

When visiting my wallet, the filter options, search or min Steem/SBD/SP amounts are not shown. A mixed content error is provided.

Pre-Requisite

  • Wallet History should be enabled within settings.

Steps to reproduce

From a fresh install download SteemPlus here

  1. Complete the on-boarding flow and sign in via SteemConnect
  2. You will be redirected to Steemit.com (if you're already on the site, refresh to ensure the SteemPlus extension is working as expected).
  3. Navigate to your wallet
  4. Note that the wallet history doesn't load.

Environment

  • Browser: Google Chrome (Version 65.0.3325.162 (Official Build) (64-bit))
  • Device: MacBook Pro (Retina, 15-inch, Late 2013)
  • Operating system: MacOS HighSierra Version 10.13
  • Application Version of Testing: 2.20.0.3

Although this issue as originally tested on 2.20.0.3, this issue is still present on 3.0.0.1 and will be resolved in the next release of the extension.

Error & Resolution

The following error is provided in the console:

The area effected is line 605 of wallet.js within getLastBlockID(), this can be seen below:

function  getLastBlockID()

{

return  new  Promise(function (resolve, reject) {

$.ajax({

type:  "GET",

beforeSend:  function(xhttp) {

xhttp.setRequestHeader("Content-type", "application/json");

xhttp.setRequestHeader("X-Parse-Application-Id", chrome.runtime.id);

},

url:  'https://steemplus-api.herokuapp.com/api/get-last-block-id',

success:  function(response) {

resolve(response[0]['block_num']);

},

error:  function(msg) {

resolve(msg);

}

});

});

}

This can be resolved by adjusting

url: 'http://steemplus-api.herokuapp.com/api/get-last-block-id',

to

url: 'https://steemplus-api.herokuapp.com/api/get-last-block-id',

Recording of issue

The following video shows this issue in more detail:

Proof of work

My GitHub account: https://github.com/tobias-g1
The issue has been reported here: https://github.com/stoodkev/SteemPlus/issues/153

Following this report, the issue has now been resolved and can be found within the following commit:

https://github.com/steemplus/SteemPlus/commit/20ef8541bc8098d53e6727a7f3a000e336bcfadf

Sort:  

Hello @tobias-g,
sorry for the delay in the review
I was able to confirm that this issue has been resolved
This was kind of complex to score because the fix was so easy, but the functionality affected was on a great scale. I tried to stick with the demographs for now. Overall, Thanks for helping this project and Keep contributing.
Thank you

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for your review, @sachincool!

So far this week you've reviewed 1 contributions. Keep up the good work!

Hey, @tobias-g!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.15
TRX 0.15
JST 0.029
BTC 56269.96
ETH 2364.95
USDT 1.00
SBD 2.26