Почему приложение крашится? FATAL EXCEPTION: main
                                                                                                    Process: today.maxi.mobile.dev, PID: 22311
                                                                                                    BusinessLogicValidException(code=REQUEST_ERROR, message=Ошибка получения информации с сервера.)
                                                                                                    	at ru.maxi.mobile.core.network.utils.RestResponseTransformerKt$makeApiRequest$2.invokeSuspend(RestResponseTransformer.kt:74)
                                                                                                    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                                                                    	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:99)
                                                                                                    	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113)
                                                                                                    	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
                                                                                                    	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@9ded283, Dispatchers.Main.immediate]package ru.maxi.mobile.feature.achievements.ui.container

import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import by.kirich1409.viewbindingdelegate.viewBinding
import dagger.hilt.android.AndroidEntryPoint
import ru.maxi.mobile.R
import ru.maxi.mobile.base.ui.BaseContainerFragment
import ru.maxi.mobile.databinding.FragmentAchievementsContainerBinding

/**
 * [Fragment] контейнера функционала достижений
 */
@AndroidEntryPoint
class AchievementsContainerFragment: BaseContainerFragment(
    R.layout.fragment_achievements_container,
    routerKey = "ACHIEVEMENTS"
) {

    override val viewBinding by viewBinding(FragmentAchievementsContainerBinding::bind)

    private val viewModel by viewModels<AchievementsContainerViewModel>()

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        viewModel.getRegistrationState()
        Log.d("TESTING", "${viewModel.getRegistrationState()}")
    }
}
package ru.maxi.mobile.feature.achievements.ui.container

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import ru.maxi.mobile.feature.achievements.domain.GetAchievementsRegistrationStateUseCase
import javax.inject.Inject

/**
 * [ViewModel] для контейнера функционала достижений
 */
@HiltViewModel
class AchievementsContainerViewModel @Inject constructor(
    private val getAchievementsRegistrationState: GetAchievementsRegistrationStateUseCase
) : ViewModel() {

    fun getRegistrationState() {
        viewModelScope.launch {
            getAchievementsRegistrationState()
        }
    }
}