Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Error from MKIO API "Streaming Endpoint load failed. 'cdnProvider' field only valid if CDN is enabled" in new 1.2.0 package. #41

Closed
acvila-de-munte opened this issue Mar 7, 2024 · 6 comments

Comments

@acvila-de-munte
Copy link

acvila-de-munte commented Mar 7, 2024

If you try to create the streaming endpoint with the new package 1.2.0 with the model provided below you can get an error from mediakind api

Streaming Endpoint load failed. 'cdnProvider' field only valid if CDN is enabled.

I believe it is because in the StreamingEndpointProperties class has CdnProvider property of StreamingEndpointCdnProvider type (enum) and it isn't nullable and by default has StandardAkamai value

image

code example

var properties = new StreamingEndpointProperties
{
	Description = "my description",
	ScaleUnits = 0,
	Sku = new StreamingEndpointsCurrentSku
	{
		Name = "Standard",
		Capacity = 600
	}
};

image
image
Thank you!

@xpouyat
Copy link
Owner

xpouyat commented Mar 7, 2024

Thanks. I imported some new classes and looks like there is a side effect. I will fix it.

@xpouyat xpouyat mentioned this issue Mar 7, 2024
Merged
@xpouyat
Copy link
Owner

xpouyat commented Mar 7, 2024

Should be fixed in v1.2.1 https://www.nuget.org/packages/MK.IO/1.2.1

@acvila-de-munte
Copy link
Author

Great 😊 thank you! I’ll try it on Monday then

@xpouyat
Copy link
Owner

xpouyat commented Mar 18, 2024

Any update ?

@xpouyat xpouyat closed this as completed Mar 21, 2024
@acvila-de-munte
Copy link
Author

No update, didn't have time to check. I'll try to do this next week on Monday

@acvila-de-munte
Copy link
Author

Hello @xpouyat
I've just tried and looks fine.
Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants