fastlane-plugin-teams icon indicating copy to clipboard operation
fastlane-plugin-teams copied to clipboard

C# Server Error

Open bsweett opened this issue 5 years ago • 5 comments

Not sure if Microsoft changed their API or not but I've been seeing this error when using the teams plugin:

An error occurred: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Fastlane: 2.132.0 Teams Plugin: 0.2.0 Ruby Version: 2.4.2

Usage:

private_lane :teams_message do |options|
    teams_url = "https://outlook.office.com/webhook/..."
    title = options[:title]
    message = options[:message]

    teams(
      title: title,
      message: message,
      facts:[],
      teams_url: teams_url
    )
end

bsweett avatar Oct 07 '19 14:10 bsweett

We are seeing this too. Just dug around for 4 hours before finding this issue cut today

ihgmobile-devops avatar Oct 08 '19 02:10 ihgmobile-devops

As a follow up....we had to evaluate the message before sending it along. eg

teams( title: title, message: "#{message}", facts:[], teams_url: teams_url )

I suspect in our case, during error reporting to MS Teams channels, the error text has something 'bad' in it. Not a Ruby dev day-to-day FYI, but this got us going again. Tracked that down because other messages were sent properly, so not a backend issue at MS perhaps

ihgmobile-devops avatar Oct 09 '19 01:10 ihgmobile-devops

had a similar error

fastlane returns this [!] wrong number of arguments (given 0, expected 1) (ArgumentError)

while testing on Postman System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

viennarzc avatar Oct 09 '19 04:10 viennarzc

If you have any suggestion for a fix, it is more than welcome :)

mbogh avatar Oct 10 '19 09:10 mbogh

Same issue for us too since yesterday.

ir2pid avatar Oct 10 '19 10:10 ir2pid