mbogh / fastlane-plugin-teams

MIT License
49 stars 15 forks source link

C# Server Error #6

Open bsweett opened 5 years ago

bsweett commented 5 years ago

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
ihgmobile-devops commented 5 years ago

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

ihgmobile-devops commented 5 years ago

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

viennarzc commented 5 years ago

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.

mbogh commented 5 years ago

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

ir2pid commented 5 years ago

Same issue for us too since yesterday.