Giter Site home page Giter Site logo

azure-samples / blockchain Goto Github PK

View Code? Open in Web Editor NEW
820.0 114.0 684.0 95.48 MB

Azure Blockchain Content and Samples

License: MIT License

PowerShell 1.59% Shell 0.26% Python 18.29% C# 1.10% Scala 0.01% Java 9.93% HTML 66.45% JavaScript 1.13% CSS 0.22% Dockerfile 0.02% TSQL 0.14% Solidity 0.86% Handlebars 0.01%

blockchain's Introduction

page_type languages products description urlFragment name
sample
csharp
java
nodejs
python
rest
solidity
dotnet
azure
azure-blockchain-workbench
azure-blockchain-service
This repository contains content and samples for the Azure Blockchain Workbench.
blockchain-samples
Microsoft Azure Blockchain Workbench Samples

Microsoft Azure Blockchain Workbench Microsoft Azure Blockchain Workbench

New! Version 1.8.0 of Workbench has been released. Please see our Release Notes and Upgrade Instructions if you're running an older version.

Important Notice

The Azure Blockchain Development Kit has been moved to its own repository We are not accepting pull-requests for the development kit on this repository anymore.

This repository contains content and samples in number of areas, including:

To learn more about Azure Blockchain Workbench, please visit our product page and documentation.

How to provide feedback

To provide feedback on these samples, please see our Contribution Guidelines.

For general product feedback, please visit our forum.

To request additional features or samples, visit our UserVoice site.

blockchain's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blockchain's Issues

cloudShellPreDeploy.ps1: Need to connect to the correct AAD tenant before provisioning resources

Please provide us with the following information:

This issue is for:

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Create new AAD tenant
  2. Launch Cloud Shell and login to the corporate tenant (i.e. microsoft.onmicrosoft.com)
  3. Execute cloudShellPreDeploy.ps1 and enter the tenant name that was created in step 1.

Any log messages given by the failure

Standard outputs

Expected/desired behavior

Admin user and app registration are created in the new AAD tenant

Actual behavior

Admin user and app registration are created in the tenant that was used to login to Cloud Shell.

Workaround

Before executing cloudShellPreDeploy.ps1, execute

Connect-AzureAD -TenantId <AAD_GUID>

OS and Version?

Not applicable

Versions

Not applicable

Wrong Open Api definition in POST /api/v1/contracts/{contractId}/actions

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Hello, I am generating a C# client with NSwag against the Workbench Api swagger.json and when I am posting an action against a contract the returned type is a raw number representing the action id but the swagger.json specifies that a ContractActionOutput with a ContractActionID property is expected so deserialization fails.

Thanks

URL broken for FrequentFlyerRewardsCalculator.zip

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

URL broken for FrequentFlyerRewardsCalculator.zip

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

No able to create contract using this .sol project

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

collectBlockchainWorkbenchTroubleshooting.ps1 problem

Minimal steps to reproduce

run collectBlockchainWorkbenchTroubleshooting.ps1
get PowerShell module version exception
followed an instruction and have installed AzureRM module locally and in Cloud Shell

Any log messages given by the failure

PS C:\Projects\blockchain\blockchain-workbench\scripts\troubleshooting> .\collectBlockchainWorkbenchTroubleshooting.ps1 -SubscriptionID "a69dce......e3be1" -ResourceGroupName "BaaS-RG"
The required version of the Azure Powershell cmdlets was not detected. We recommend that you follow the
instructions on https://www.powershellgallery.com/packages/AzureRM/6.0.1 to update to a compatible version. Or,
you can run this script using Azure Cloud shell at https://shell.azure.com/powershell
At C:\Projects\blockchain\blockchain-workbench\scripts\troubleshooting\collectBlockchainWorkbenchTroubleshooting.ps1:438 char:5

  • throw "The required version of the Azure Powershell cmdlets was n ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    

Expected/desired behavior

collect ABW troubleshooting info

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 10 and Cloud Shell (Edge)

Versions

IoT Hub to Azure Blockchain (cannot Update User TABLE)

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

https://github.com/Azure-Samples/blockchain/blob/master/blockchain-workbench/iot-integration-samples/ConfigureIoTDemo.md

I follow the document under the User Creation

Update "User" Set ExternalId = ‘’ where EmailAddress = ‘’

The Script is successful executed but when I run select * from user. I cant see it is update in the User table. Also,

the Iot can deliver to service bus but in the store procedure step, it will show below errors

image

{
"status": 400,
"message": "Procedure or function 'GetContractInfoForDeviceId' expects parameter '@deviceid', which was not supplied.\r\nclientRequestId: 6c5e7fa3-e5fe-45b2-8a85-2de22cf3ca16",
"source": "sql-logic-cp-eastus.logic-ase-eastus.p.azurewebsites.net"
}

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Unable to update chaincode state in Refrigerated Transportation Sample

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I went through the IOT integration document and now I have an IOT HUB to handle my devices and their message, the Logic App is also worked well, I can see the data from IOT HUB are parsed and then sent to Service BUS(ingressQueue as the document said), however, not any state was updated of the Refrigerated Transportation Contract.

Any log messages given by the failure

I think the DLT consumer log would be helpful, but I don't know where they are.

Expected/desired behavior

State update could be tracked on the Workbench app web page

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

1.5

Mention any other details that might be useful

If I log as the Device role on Blockchain Workbench app web page and perform the 'IngestTelemetry' function, the state could be updated correctly.

Thanks! We'll be in touch soon.

Workbench UI Take action button is disabled when enum declared in function signature

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Create a function with the following signature:

enum AnswerType { No, Yes}

function vote(uint questionIndex, AnswerType answer) public {

Configure the function and declare its parameters:

 "Parameters": [
                        {
                            "Name": "questionIndex",
                            "Description": "Question number",
                            "DisplayName": "Question number",
                            "Type": {
                                "Name": "int"
                            }
                        },
                        {
                            "Name": "answer",
                            "Description": "Selected question option",
                            "DisplayName": "Answer to the question",
                            "Type": {
                                "Name": "enum",
                                "EnumValues": ["No", "Yes"]                                
                            }
                        }

Create the application on the Workbench UI app and you won't be able to trigger the Take Action button. All data is correct but the button will remain disabled

UI error

Any log messages given by the failure

Expected/desired behavior

When all data types validations are passed on the UI you must be able to trigger the action.

Note: I guess this is a UI related bug as triggering the function throught the REST api works like a charm.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Buy option not available after item listed. in bazar item listing.

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Problem using Azure principal account to deploy workbench application through workbench rest apis

Using Azure principal account to deploy workbench application using workbench rest apis

Minimal steps to reproduce

  1. Create Azure Principal account (az ad sp create for rbac)
  2. In Azure DevOps ARM service connection with principal credentials
  3. Create Azure DevOps pipeline
  4. In release phase create rest calls to the Azure Workbench api to deploy sol and json artifacts

Any log messages given by the failure

Expected/desired behavior

Principal account would be able to register new application

OS and Version?

Azure DevOps -> Azure Blockchain Workbench

Versions

1.5

Mention any other details that might be useful

Could not aff principal to a workbench administrators groups as a result could not register new Workbench application

Thanks! We'll be in touch soon.

UI does not update automatically

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ X] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Simply interact with a contract via the UI

Any log messages given by the failure

no

Expected/desired behavior

Using the Blockchain Workbench UI: when a user toke an action using any contract, the other party does not get prompted for taking an action without refreshing the page in the browser. It used to work as expected a couple of days ago.

OS and Version?

Windows 10, Google Version 67.0.3396.87 (Official Build) (64-bit)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Update URL for install_blockscout.sh in BlockScout setup guide

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

BlockScout setup (https://github.com/Azure-Samples/blockchain/blob/master/ledger/template/ethereum-on-azure/technology-samples/blockscout/README.md) has invalid URL to download install_blockscout.sh
Currently: http://www.github.com/azure-samples/blockchain/ledger/template/ethereum-on-azure/block-explorers/blockscout/install_blockscout.sh

Should be: https://raw.githubusercontent.com/Azure-Samples/blockchain/master/ledger/template/ethereum-on-azure/technology-samples/blockscout/install_blockscout.sh

Script Link is broken

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Click on the script link in the readme.md for Azure Blockchain Workbench Pre-Deployment Script

Any log messages given by the failure

404 returned

Expected/desired behavior

script file download

OS and Version?

NA

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Store Blockchain Workbench messages in Cosmos DB code does not work

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [X ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I followed the docs and created the Cosmos DB account and Function App.

Any log messages given by the failure

2018-05-25T00:50:07.630 [Error] Exception while executing function: Functions.CosmosDBConsumer. mscorlib: Exception has been thrown by the target of an invocation. f-CosmosDBConsumer__-1449330061: Object reference not set to an instance of an object.

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

ProcessEventsWithAzureFunctions missing code in sample function

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful

ProcessEventsWithAzureFunctions function app code missing for case statements


Thanks! We'll be in touch soon.

Error in collectBlockchainWorkbenchTroubleshooting.ps1 line 471

$apiWebsite = ($websites | Where-Object { $_.SiteName -like "*-api" })[0] # Select the Workbench API

Line 471 says:
$apiWebsite = ($websites | Where-Object { $_.SiteName -like "*-api" })[0] # Select the Workbench API

However, the $websites doesn't contain a property SiteName. It does contain Name or RepositorySiteName, so any of these will work.

ServiceBus to Blockchain connection not working (when using existing Blockchain)

When I push a message through the ServiceBus to the Blockchain, the event does not seem to get to the Blockchain - this is only true if instead of creating a new Blockchain (when I create the Workbench resource), I use an existing Blockchain (i.e. I use the Azure template to create a PoA ethereum resource and then associate that endpoint to the Workbench Template). I'm leveraging the latter so I can then use explorer like blk.io to view the blocks, contracts, transactions on the blockchain...

Smart contracts functions with return values

Is there a way of modeling contract functions with return values in the configuration? I did not see this mentioned in the docs anywhere and all the samples don't have return values in the contract functions.

Broken links for all of the samples for office integration

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Go to https://github.com/Azure-Samples/blockchain/blob/master/blockchain-workbench/office-integration-samples/readme.md and try to click any of the links provided

Expected/desired behavior

The links will redirect to another web page and not 404

Mention any other details that might be useful

Links are broken when trying to access the link

Cannot insert duplicate key row in object 'dbo.Block' with unique index 'Block_BlockHash'.

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  • Created a new Azure Blockchain Workbench
  • Created an application for each of the samples provided on Github
  • With a group of more than 20 users, we tested creating contracts and moving them along their different workflows.
  • At some point, the application stopped creating contracts showing the following error:

It looks like something went wrong with creating contract 22. Contact your administrator for help resolving the problem.

Any log messages given by the failure

Checked application insights and I am seeing thousands of occurrences of the following error:

Cannot insert duplicate key row in object 'dbo.Block' with unique index 'Block_BlockHash'. The duplicate key value is (0x4a07363c6902893bb73e61351a736a6ba67bc1766cd870d03bd381566049d448). The statement has been terminated.

Dapper.SqlMapper+<ExecuteImplAsync>d__37.MoveNext

Expected/desired behavior

We should be able to create contracts and no errors should be showing up on Application Insights.

OS and Version?

Azure Blockchain Workbench

Versions

September 2018 (1.3)

Mention any other details that might be useful

I disabled all the apps but the errors are still showing up on Application Insights.

cloudShellPreDeploy.ps1: Does not set the application permissions for Microsoft Graph

This issue is for:

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Execute cloudShellPreDeploy.ps1
Check the permissions on the app

Any log messages given by the failure

None

Expected/desired behavior

image

Actual

image

Missing queue for IOT/Blockchain integration

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

When creating Logic App for consuming messages from the IoT Hub into the Blockchain Workbench environment, I can't find a queue called "activityhub" in the workbench deployment, so it is not possible to complete the "for-each" action of the logic app.

Expected/desired behavior

We need the name of the queue in the workbench environment that consumes the telemetry from the iot hub.

OS and Version?

Azure portal

Blockchain Workbench: Unable to add User to app

Hi,

Created a new in Active Directory. Logging into my Blockchain Workbench site as Admin user. See my New app icon. Only 1 User (admin) listed. Click on App. Add Member. Do a search for members and no user found.
I checked the F12 console in my google chrome browser and I found this error:
" error:"Internal Server Error" "

I checked the graph API permissions and they are set properly but I can't add Members to the App.

It appears that Azure Cloudshell is not a compatible platform for the upgrade script

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Launch Azure Cloud Shell
  2. copy upgrade script into user home
  3. Install required modules
  4. Run Scirpt

Any log messages given by the failure

The required version of the Azure Powershell cmdlets was no
t detected. We recommend that you follow the
    instructions on https://docs.microsoft.com/en-us/powers
hell/azure/overview?view=azurermps-6.8.1 to update to a compatible version.At /home/user/upgrade.ps1:64 char:5
+     throw "The required version of the Azure Powershell cmdlets was n ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : OperationStopped: (The required ve...atible version.:String) [], RuntimeException
+ FullyQualifiedErrorId : The required version of the Azure Powershell cmdlets was not detected. We recommend that you follow the
    instructions on https://docs.microsoft.com/en-us/powershell/azure/overview?view=azurermps-6.8.1 to update to a compatible version.

Expected/desired behavior

Would expect a successful upgrade

OS and Version?

Azure Cloudshell

Versions

Mention any other details that might be useful

The error log output and code indicate that this script is looking for specific versions of the AzureRM module. (6.8.1) The Azure Cloudshell Modules have different version numbers. I am not sure if the functionality of the "NetCore" versions of the modules will provide different outcomes.


Thanks! We'll be in touch soon.

Solidity function returning parameters configuration

Hi, I am looking to the different samples available in this repository and I can't see any json configuration with workflow functions returning parameters

For example:

function myFunction(string param1) public view returns (uint, uint);

Is this scenario not supported yet on Azure Blockchain Workbench?.

If I change the method signature to:

function myFunction(string param1) public;

The error that I am getting in Azure when uploading my contract actually dissapears like the modified signature is what the workbench is looking for, without return parameters.

If this feature is not available yet, is it on the roadmap for the next version?

Thank you very much

I can't retrieve parameters value passed from Logic APP to the activityhub

Hi everyone,

I have an issue with calling smart contract function from logic app.

I am sending a massage to the activityhub from logic app to trigger a function on the contract.

Logic app triggers this function corretly but my issue is that I can't see what parameters the Logic App passed to this function. When I trigger the same function from the API endpoint I am able to see the parameters I passed to the function. Bellow is the message I am sending to the activityhub

{
"ContractActionId": null,
"ConnectionId": @{items('For_each')?['ConnectionId']},
"UserChainIdentifier": "@{items('For_each')?['UserChainIdentifier']}",
"ContractCodeArtifactBlobStorageURL": "@{items('For_each')?['ContractCodeBlobStorageUrl']}",
"OperationName": "CreateContractAction",
"ContractLedgerIdentifier": "@{items('For_each')?['ContractLedgerIdentifier']}",
"WorkflowFunctionName": "@{items('For_each')?['WorkflowFunctionName']}",
"WorkflowName": "@{items('For_each')?['WorkflowName']}",
"ContractActionParameters": [
{
"name": "wifi",
"value": "@{body('Parse_JSON')?['wifi']}"
},
{
"name": "radio",
"value": "@{body('Parse_JSON')?['radio']}"
}

],
"RequestId": "@{variables('RequestID')}"

}

PS. I have looked in my SQL database and it looks like these parameters are not getting replicated from the blockchain to the dbo.ContractActionParameter table.

Thanks,
Peter

“List Item to Sell” not creating a new contract in in the Item Listing workflow

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Deploy Bazaar - Item Listing Sample Application
  2. Login as Bazaar Maintainer and add new contract to the Bazaar workflow
  3. Login as Party and take action “List Item to Sell” in the contract created in step 2
  4. The action is recorded, but there is no new contract in the Item Listing workflow

Any log messages given by the failure

No

Expected/desired behavior

There is a new contract in the Item Listing workflow

OS and Version?

Windows 10

Versions

Mention any other details that might be useful


The code
currentItemListing = new ItemListing(itemName, itemPrice, CurrentSeller, CurrentContractAddress, InstancePartyA, InstancePartyB);

does not create a new contract. I found no new contracts in the database.

Thanks! We'll be in touch soon.

bearer-token sample docker code broken

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

see pr #76

In Azure blockchain workbench unable to add a new contract

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

In Azure blockchain workbench unable to add a new contract.
If I try to add a new contract then after executing the request for some time it's getting failed with the following error -
This may take some time. Your administrator can use RequestId xxxx-xxxx-xxxx to look up details in Application Insights.

Followed this link to troubleshoot this issue.

Unfortunately I couldn't find any Error message in the whole Log. All are of Information type and looks all are successful.

See Screenshot:
image

At this point of time I am unable to find what's the underneath error is.
How do I troubleshoot further from here?

Any log messages given by the failure

This may take some time. Your administrator can use RequestId xxxx-xxxx-xxxx to look up details in Application Insights.

Expected/desired behavior

OS and Version?

Windows 10.

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Ping pong smart contract can't be deployed on Workbench

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting

Minimal steps to reproduce

Upload the following solidity file:
https://github.com/Azure-Samples/blockchain/tree/master/blockchain-workbench/application-and-smart-contract-samples/ping-pong-game/ethereum

Any log messages given by the failure

See image:

screenshot 2019-01-08 17 18 01

Expected/desired behavior

The solidity file should be uploaded.

OS and Version?

macOS (High Sierra)

Versions

Workbench 1

Blockscout UI won't render after following instructions

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Follow the steps from https://github.com/Azure-Samples/blockchain/tree/master/ledger/template/ethereum-on-azure/technology-samples/blockscout. I used the Private IP address of one of the nodes in the blockchain consortium that I had previously set up.

Any log messages given by the failure

502 Bad Gateway.

Expected/desired behavior

The blockscout UI should render when I navigate to the IP address from the deployment.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Ubuntu 16.04 LTS.

Versions

Mention any other details that might be useful

I have tried several different IP addresses for the node from the consortium. Additionally, lot's of warnings appear when install_blockscout.sh is run. I didn't install any dependencies before running this script, so I may be missing something.


Thanks! We'll be in touch soon.

Digital Locker - 2 issues in sol file

There are two issues with the current digitallocker.sol file which caused the contact not to be accepted in workbench:

  1. Spelling issue - currently this is how the line looks like in the contract: ContractUpdated("UploadDocments"); the word Documents is misspelt - it should be corrected to ContractUpdated("UploadDocuments");
  2. Incorrect contract name - currently this is how the line looks like in the contract: ContractUpdated("AvailableToShare") - it should be corrected to ContractUpdated("ReleaseLockerAccess");

I made the 2 changes in my local copy and was able to execute the application...

Wrong Open Api definition in /api/v1/contracts/{contractId}/actions

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Hello, I have generated a C# client for the Azure Workbench Api using Nswag and I am having trouble when calling
/api/v1/contracts/{contractId}/actions endpoint

The swagger.json description specifies that this endpoint returns a type called WorkflowStateTransitionList with a json property called "workflowStateTransitions" but it is actually returning a property called "workflowFunctions" that represents a different type so autogenerated clients can't deserialize the response properly.

Setting Firewall rules for SQL access from PowerBI

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Try to connect to SQL Server instance from PowerBI may be disallowed given firewall rules

Any log messages given by the failure

Error is presented to user when trying to connect to ABW SQL instance from PowerBI

Expected/desired behavior

Add a documentation link to https://docs.microsoft.com/en-us/azure/sql-database/sql-database-firewall-configure, and note in markdown the user might hit firewall issues when connecting their client PC to the ABW SQL instance from PowerBI

OS and Version?

Windows 10, but is an issue across versions

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Unable to deploy new applications to the BlockChain Workbench

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. login to BlockChain Workbench app
  1. +New upload .json, .sol files and click on Deploy

Any log messages given by the failure

Expected/desired behavior

Deploy the new application and display on WorkBench

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Create Contract JSON not working V1.6 Workbench...

Create Contract Request JSON similar to this does not work when sent via ServiceBus (https://bit.ly/2sDWzUv)..I am able to create a contract using the REST API using a very different JSON (https://bit.ly/2RUYz9a). BTW - I'm able to update the contract using ServiceBus using a variation of the below (the sample given in the documentation), just the Create Contract is does not work...

{
"requestId": "ce3c429b-a091-4baa-b29b-5b576162b211",
"userChainIdentifier": "0x9a8DDaCa9B7488683A4d62d0817E965E8f248398",
"applicationName": "AssetTransfer",
"workflowName": "AssetTransfer",
"parameters": [
{
"name": "description",
"value": "a 1969 dodge charger"
},
{
"name": "price",
"value": "12345"
}
],
"connectionId": 1,
"messageSchemaVersion": "1.0.0",
"messageName": "CreateContractRequest"
}

An image file on azure-blob-storage document is broken

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Access this readme url: https://github.com/Azure-Samples/blockchain/tree/master/blockchain-development-kit/accelerators/attestable-documents-and-media/blockchain-workbench/azure-blob-storage
A screenshot under "Choose a name for the Function App..." may be broken. I cannot see full image.

Any log messages given by the failure

no error message

Expected/desired behavior

Show full screenshot

OS and Version?

OS X sierra, chrome

Versions

1.6.0

Mention any other details that might be useful


Thanks! We'll be in touch soon.

TypeError: callback is not a function: process.internalTickCallback:next_tick.js:72:19

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Run in WSL:
\workbench\blockchain-development-kit\devops\sample-files\truffle test
also fails with truffle migrate

Any log messages given by the failure

`

/home/user/.nvm/versions/node/v11.2.0/lib/node_modules/truffle/build/webpack://web3/lib/web3/httpprovider.js:128
callback(error, result);
^
TypeError: callback is not a function
at /home/user/.nvm/versions/node/v11.2.0/lib/node_modules/truffle/build/webpack:/
/web3/lib/web3/property.js:119:1
at /home/user/.nvm/versions/node/v11.2.0/lib/node_modules/truffle/build/webpack://web3/lib/web3/requestmanager.js:89:1
at /home/user/.nvm/versions/node/v11.2.0/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:225:1
at /home/user/.nvm/versions/node/v11.2.0/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
at XMLHttpRequest.request.onreadystatechange (/home/user/.nvm/versions/node/v11.2.0/lib/node_modules/truffle/build/webpack:/
/web3/lib/web3/httpprovider.js:128:1)
at XMLHttpRequestEventTarget.dispatchEvent (/home/user/.nvm/versions/node/v11.2.0/lib/node_modules/truffle/build/webpack://xhr2/lib/xhr2.js:64:1)
at XMLHttpRequest._setReadyState (/home/user/.nvm/versions/node/v11.2.0/lib/node_modules/truffle/build/webpack:/
/xhr2/lib/xhr2.js:354:1)
at XMLHttpRequest._onHttpResponseEnd (/home/user/.nvm/versions/node/v11.2.0/lib/node_modules/truffle/build/webpack://xhr2/lib/xhr2.js:509:1)
at IncomingMessage. (/home/user/.nvm/versions/node/v11.2.0/lib/node_modules/truffle/build/webpack:/
/xhr2/lib/xhr2.js:469:1)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1098:12)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
`

Expected/desired behavior

Not to crash.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Win10

Versions

Build 17134.407

Mention any other details that might be useful

WSL Ubuntu 14.04.5 LTS
Node v11.2.0

Running Ganache, I see several transactions and blocks generated each time I run test or migrate.

Was able to deploy other Truffle box successfully, so environment appears stable.

Could not find BlockChian WorkBench Application error log

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I am working on a RegisteredTemperature application on the workbench. When a new contract is created it is giving me an error
It looks like something went wrong with creating contract 7. Contact your administrator for help resolving the problem.
Where to find the error logs on BLock Chain Workbench

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Link to download SQL Stored Procedure is missing in blockchain/blockchain-workbench/iot-integration-samples/ConfigureIoTDemo.md page

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Invalid messaging integration sample

This issue is for a:

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Follow the sample from: https://github.com/Azure-Samples/blockchain/blob/master/blockchain-workbench/messaging-integration-samples/CreateContract.md

Towards the end, it creates a logic app action that gets data from LogicAppGetContractCreationDetails, and suggests setting the userChainIdentifier from that data. However, the stored procedure does not return that bit of data at all.

Also, the screenshot from earlier suggests that the stored proc would take an extra EmailAddress argument, while it only has two:

Coffee .sol file needs to be updated

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [x ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

load workbench with the current coffee.sol file

Any log messages given by the failure

Error: Workflow contract Coffee should not derive from WorkbenchBase base contract. This is considered an error now. Update the Coffee contract to remove WorkbenchBase and calls to "ContractCreated" and "ContractUpdated" functions.

Warnings:
Coffee.sol:10:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead. function WorkbenchBase(string applicationName, string workflowName) internal {
^ (Relevant source part starts here and spans across multiple lines).
Coffee.sol:63:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead. function Coffee(string description, address device, address supplyChainOwner, address supplyChainObserver, int minHumidity, int maxHumidity, int minTemperature, int maxTemperature) public {
^ (Relevant source part starts here and spans across multiple lines).
Coffee.sol:16:9: Warning: Invoking events without "emit" prefix is deprecated. WorkbenchContractCreated(ApplicationName, WorkflowName, msg.sender);
^-----------------------------------------------------------------^
Coffee.sol:20:9: Warning: Invoking events without "emit" prefix is deprecated. WorkbenchContractUpdated(ApplicationName, WorkflowName, action, msg.sender);
^-------------------------------------------------------------------------^

Expected/desired behavior

should load with no issues

OS and Version?

workbench 1.6

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Unable to add myself to workbench applications

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  • I deployed workbench to my Azure account linked with my corporate Microsoft account: [email protected]
  • The workbench got deployed. I am added to the AD app which is linked to the workbench.
  • When I navigate to the UI, I am able to deploy new blockchain applications. [See screenshot]
    image
  • But I am not able to perform any operations on the deployed apps because I cannot add myself to them.

Any log messages given by the failure

image
Error 403: Authorization_RequestDenied - Insufficient privileges to complete the operation.
I am able to deploy new apps but not perform operations on them.

Expected/desired behavior

I should be able to perform operations on deployed apps. I am an administrator on the AD API app.

Error when running collectBlockchainWorkbenchTroubleshooting.ps1

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

run script .\collectBlockchainWorkbenchTroubleshooting.ps1 -Sub
scriptionID "" -ResourceGroupName "ddblockchain"

Any log messages given by the failure

`Invoke-WebRequest : {"error":{"message":"The request had some invalid properties","code":"BadArgumentError","innererror
":{"code":"SyntaxError","message":"Syntax Error"}}}
At C:\temp\blockchain\blockchain-workbench\scripts\troubleshooting\collectBlockchainWorkbenchTroubleshooting.ps1:240 ch
ar:17

  • ... $response = Invoke-WebRequest -UseBasicParsing -Uri $uri -Body $body ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
      eption
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand`

Expected/desired behavior

The ZIP file is not created because of the error

OS and Version?

Windows 10

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.